Skip to content

Commit d2a566f

Browse files
committed
No need to check for readlink if it's required
1 parent 2e58c44 commit d2a566f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,9 @@ if [ -z "$GHE_DATA_DIR" ]; then
300300
fi
301301

302302
# Convert the data directory path to an absolute path, basing any relative
303-
# paths on the backup-utils root, and using readlink, if available, to
304-
# canonicalize the path.
303+
# paths on the backup-utils root, and use readlink to canonicalize the path.
305304
if [ "${GHE_DATA_DIR:0:1}" != "/" ]; then
306-
GHE_DATA_DIR="$(cd "$GHE_BACKUP_ROOT" && readlink -m "$GHE_DATA_DIR" 2>/dev/null || echo "$GHE_BACKUP_ROOT/$GHE_DATA_DIR")"
305+
GHE_DATA_DIR="$(cd "$GHE_BACKUP_ROOT" && readlink -m "$GHE_DATA_DIR")"
307306
fi
308307
export GHE_DATA_DIR
309308

0 commit comments

Comments
 (0)