use 755 for config dir for ttbprc readability
This commit is contained in:
parent
0e00aeaf45
commit
491adc5290
1
.nanpa/755.kdl
Normal file
1
.nanpa/755.kdl
Normal file
@ -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…
x
Reference in New Issue
Block a user