diff --git a/.nanpa/755.kdl b/.nanpa/755.kdl new file mode 100644 index 0000000..2dc8ec9 --- /dev/null +++ b/.nanpa/755.kdl @@ -0,0 +1 @@ +patch type="added" "use 755 for config dir" diff --git a/main.go b/main.go index b2bfa3f..e4d2c3b 100644 --- a/main.go +++ b/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)