mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
scripts: Allow checkShellScripts.sh to be run from its parent directory
... on systems that don't have realpath. Part of 31679.
This commit is contained in:
parent
796a9b37ea
commit
8c37bf738d
@ -21,7 +21,7 @@ if command -v realpath ; then
|
||||
HERE=$(dirname "$(realpath "$0")")
|
||||
else
|
||||
HERE=$(dirname "$0")
|
||||
if [ ! -d "$HERE" ]; then
|
||||
if [ ! -d "$HERE" ] || [ "$HERE" = "." ]; then
|
||||
HERE=$(dirname "$PWD/$0")
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user