Fix dir permission

pull/98/merge
Doflatango 2018-03-08 15:08:40 +08:00
parent 15273aacf1
commit 4138c5f213
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}