소스 검색

Merge branch 'tor-github/pr/1313'

George Kadianakis 4 년 전
부모
커밋
8f2ab45229
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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