mirror of https://github.com/shunfei/cronsun
Fix dir permission
parent
15273aacf1
commit
4138c5f213
|
@ -32,7 +32,7 @@ var BackupCmd = &cobra.Command{
|
||||||
|
|
||||||
backupDir = strings.TrimSpace(backupDir)
|
backupDir = strings.TrimSpace(backupDir)
|
||||||
if len(backupDir) > 0 {
|
if len(backupDir) > 0 {
|
||||||
err = os.MkdirAll(backupDir, os.ModeDir)
|
err = os.MkdirAll(backupDir, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ea.Exit("failed to make directory %s, err: %s", backupDir, err)
|
ea.Exit("failed to make directory %s, err: %s", backupDir, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue