Skip to content

Commit fe080dc

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

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)