s/realpath/readlink -f/g

This commit is contained in:
jrb0001 2017-12-31 20:03:56 +01:00
parent 971fd22922
commit 96a58dffdd
4 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ if [ $# -eq 0 ]
exit
fi
BASE="$(realpath "$0")"
BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
BASE="$(dirname "$BASE")"
cd "$BASE" || exit 1