소스 검색

[Backup] Create nested directory for backup

André Peters 6 년 전
부모
커밋
b24fc6ad8c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      helper-scripts/backup_and_restore.sh

+ 1 - 1
helper-scripts/backup_and_restore.sh

@@ -36,7 +36,7 @@ if [[ ! -d ${BACKUP_LOCATION} ]]; then
   if [[ ! ${CREATE_BACKUP_LOCATION,,} =~ ^(yes|y)$ ]]; then
     exit 1
   else
-    mkdir ${BACKUP_LOCATION}
+    mkdir -p ${BACKUP_LOCATION}
     chmod 755 ${BACKUP_LOCATION}
   fi
 else