Skip to content

Commit 4b06240

Browse files
authored
Merge pull request #620 from github/enterprise-3.10-backport-612-track-progress-fix
Backport 612 for 3.10: fix mkdir issues or progress tracking
2 parents d0bc8ad + fe080dc commit 4b06240

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
@@ -654,14 +654,15 @@ restore-secret() {
654654
init-progress() {
655655
if [ -d /tmp/backup-utils-progress ]; then
656656
rm -rf /tmp/backup-utils-progress/*
657-
else
658-
mkdir /tmp/backup-utils-progress
659657
fi
658+
659+
mkdir -p /tmp/backup-utils-progress
660+
chmod -R 777 /tmp/backup-utils-progress
661+
660662
touch /tmp/backup-utils-progress/total
661663
touch /tmp/backup-utils-progress/type
662664
touch /tmp/backup-utils-progress/progress
663665
touch /tmp/backup-utils-progress/info
664-
chmod -R 777 /tmp/backup-utils-progress
665666
}
666667

667668

0 commit comments

Comments
 (0)