Skip to content

Commit

Permalink
Fix dir permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Doflatango committed Mar 8, 2018
1 parent 15273aa commit 4138c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/csctl/cmd/backup.go
Expand Up @@ -32,7 +32,7 @@ var BackupCmd = &cobra.Command{

backupDir = strings.TrimSpace(backupDir)
if len(backupDir) > 0 {
err = os.MkdirAll(backupDir, os.ModeDir)
err = os.MkdirAll(backupDir, 0755)
if err != nil {
ea.Exit("failed to make directory %s, err: %s", backupDir, err)
}
Expand Down

0 comments on commit 4138c5f

Please sign in to comment.