Skip to content

Commit 859dec3

Browse files
terroroberubiojr
authored andcommitted
replace readlink -f with a portable approach
1 parent dbbec58 commit 859dec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-detect-leaked-ssh-keys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fi
6868

6969
# Store the current backup snapshot folder
7070
if [ -L "$GHE_DATA_DIR/current" ]; then
71-
current_dir=$(readlink -f "$GHE_DATA_DIR/current")
71+
current_dir=$(cd "$GHE_DATA_DIR/current"; pwd -P)
7272
fi
7373

7474
leaked_keys_found=false

0 commit comments

Comments
 (0)