Skip to content

Commit 87e07fe

Browse files
authored
fix mkdir issues or progress tracking (#612)
Fixing https://github.com/github/ghes/issues/7409
1 parent 8bdfd2b commit 87e07fe

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
@@ -655,14 +655,15 @@ restore-secret() {
655655
init-progress() {
656656
if [ -d /tmp/backup-utils-progress ]; then
657657
rm -rf /tmp/backup-utils-progress/*
658-
else
659-
mkdir /tmp/backup-utils-progress
660658
fi
659+
660+
mkdir -p /tmp/backup-utils-progress
661+
chmod -R 777 /tmp/backup-utils-progress
662+
661663
touch /tmp/backup-utils-progress/total
662664
touch /tmp/backup-utils-progress/type
663665
touch /tmp/backup-utils-progress/progress
664666
touch /tmp/backup-utils-progress/info
665-
chmod -R 777 /tmp/backup-utils-progress
666667
}
667668

668669

0 commit comments

Comments
 (0)