Skip to content

Commit 3531210

Browse files
authored
Merge pull request #619 from github/enterprise-3.9-backport-612-track-progress-fix
Backport 612 for 3.9: fix mkdir issues or progress tracking
2 parents ffc921c + 6915543 commit 3531210

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

share/github-backup-utils/ghe-backup-config

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,14 +677,15 @@ restore-secret() {
677677
init-progress() {
678678
if [ -d /tmp/backup-utils-progress ]; then
679679
rm -rf /tmp/backup-utils-progress/*
680-
else
681-
mkdir /tmp/backup-utils-progress
682680
fi
681+
682+
mkdir -p /tmp/backup-utils-progress
683+
chmod -R 777 /tmp/backup-utils-progress
684+
683685
touch /tmp/backup-utils-progress/total
684686
touch /tmp/backup-utils-progress/type
685687
touch /tmp/backup-utils-progress/progress
686688
touch /tmp/backup-utils-progress/info
687-
chmod -R 777 /tmp/backup-utils-progress
688689
}
689690

690691
#increase total count of progress

0 commit comments

Comments
 (0)