Skip to content

Commit b0701db

Browse files
committed
Removed unused variable
1 parent f5dcb32 commit b0701db

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ for f in "$GHE_BACKUP_CONFIG" "$GHE_BACKUP_ROOT/backup.config" \
6666
fi
6767
done
6868

69-
GHE_RESTORE_IN_PROGRESS=$(readlink -m "${GHE_DATA_DIR}/in-progress-restore")
70-
GHE_BACKUP_IN_PROGRESS=$(readlink -m "${GHE_DATA_DIR}/in-progress-backup")
69+
GHE_RESTORE_IN_PROGRESS=$(readlink -fm "${GHE_DATA_DIR}/in-progress-restore")
70+
GHE_BACKUP_IN_PROGRESS=$(readlink -fm "${GHE_DATA_DIR}/in-progress-backup")
7171

7272
export GHE_RESTORE_IN_PROGRESS
7373
export GHE_BACKUP_IN_PROGRESS
@@ -82,7 +82,6 @@ ghe_restore_check() {
8282

8383
if [ -f $GHE_RESTORE_IN_PROGRESS ]; then
8484
progress=$(cat $GHE_RESTORE_IN_PROGRESS)
85-
snapshot=$(echo "$progress" | cut -d ' ' -f 1)
8685
pid=$(echo "$progress" | cut -d ' ' -f 2)
8786
echo " Error: A restore of $GHE_HOSTNAME may still be running on PID $pid." 1>&2
8887
echo " If PID $pid is not a process related to the restore utilities, please remove" 1>&2
@@ -101,7 +100,6 @@ ghe_backup_check() {
101100

102101
if [ -f $GHE_BACKUP_IN_PROGRESS ]; then
103102
progress=$(cat $GHE_BACKUP_IN_PROGRESS)
104-
snapshot=$(echo "$progress" | cut -d ' ' -f 1)
105103
pid=$(echo "$progress" | cut -d ' ' -f 2)
106104
echo " Error: A backup of $GHE_HOSTNAME may still be running on PID $pid." 1>&2
107105
echo " If PID $pid is not a process related to the backup utilities, please remove" 1>&2

0 commit comments

Comments
 (0)