use 755 for config dir for ttbprc readability

trunk
nbsp 2025-01-09 04:58:02 +02:00
parent 0e00aeaf45
commit 491adc5290
No known key found for this signature in database
GPG Key ID: 7184AC1C9835CE48
2 changed files with 2 additions and 1 deletions

1
.nanpa/755.kdl 100644
View File

@ -0,0 +1 @@
patch type="added" "use 755 for config dir"

View File

@ -39,7 +39,7 @@ press ↵ to set up an account, or Ctrl+c to quit. you can always come back late
user, _ := user.Current()
header := strings.ReplaceAll(header, "%USER%", user.Username)
header = strings.ReplaceAll(header, "%DATETIME%", time.Now().Format(time.DateTime))
os.MkdirAll(ttbp.PathUserConfig, 0700)
os.MkdirAll(ttbp.PathUserConfig, 0755)
os.MkdirAll(ttbp.PathUserEntries, 0700)
os.WriteFile(path.Join(ttbp.PathUserConfig, "header.txt"), []byte(header), 0644)
os.WriteFile(path.Join(ttbp.PathUserConfig, "footer.txt"), footer, 0644)