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:
teor 2019-09-10 12:23:12 +10:00
parent 796a9b37ea
commit 8c37bf738d
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A

View File

@ -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