Skip to content

Commit 6915543

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

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)