Browse Source

Merge branch 'tor-github/pr/1313'

George Kadianakis 4 years ago
parent
commit
8f2ab45229
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/maint/checkShellScripts.sh

+ 2 - 1
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
@@ -31,6 +31,7 @@ TOPLEVEL=$(dirname "$(dirname "$HERE")")
 if [ ! -d "$TOPLEVEL/src" ]; then
     printf "Error: Couldn't find src directory in expected location: %s\\n" \
         "$TOPLEVEL/src"
+    exit 1
 fi
 
 # Check *.sh scripts, but ignore the ones that we can't fix