use 755 for config dir for ttbprc readability
parent
0e00aeaf45
commit
491adc5290
|
@ -0,0 +1 @@
|
|||
patch type="added" "use 755 for config dir"
|
2
main.go
2
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue