diff --git a/scripts/maint/checkShellScripts.sh b/scripts/maint/checkShellScripts.sh index 02d1275c48..18a83d1fbb 100755 --- a/scripts/maint/checkShellScripts.sh +++ b/scripts/maint/checkShellScripts.sh @@ -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