Fix return code handling

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-10 14:56:16 +02:00
parent 3571355eb5
commit 7ec58479f9
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 9 additions and 1 deletions

View File

@ -1,10 +1,15 @@
#!/usr/bin/env bash
#
RESULT=0
bash ./build/autoloaderchecker.sh
RESULT=$(($RESULT+$?))
bash ./build/mergejschecker.sh
RESULT=$(($RESULT+$?))
php ./build/translation-checker.php
RESULT=$(($RESULT+$?))
php ./build/htaccess-checker.php
RESULT=$(($RESULT+$?))
for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do
@ -28,7 +33,10 @@ for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do
else
./occ app:check-code "$app"
fi
RESULT=$?
RESULT=$(($RESULT+$?))
done;
php ./build/signed-off-checker.php
RESULT=$(($RESULT+$?))
exit $RESULT