s/realpath/readlink -f/g
This commit is contained in:
@@ -6,7 +6,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user