Просмотр исходного кода

scripts: Make checkShellScripts.sh error exit if it can't find src

Closes 31679.
teor 4 лет назад
Родитель
Сommit
af12b6fd29
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      scripts/maint/checkShellScripts.sh

+ 1 - 0
scripts/maint/checkShellScripts.sh

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