Skip to content

Commit

Permalink
Fix return code handling
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed May 10, 2017
1 parent 962a51f commit d275a21
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion autotest-checkers.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#!/usr/bin/env bash
#
RESULT=0

bash ./build/autoloaderchecker.sh
RESULT=$(($RESULT+$?))
bash ./build/mergejschecker.sh
RESULT=$(($RESULT+$?))
php ./build/signed-off-checker.php
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
Expand All @@ -29,5 +35,7 @@ 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;

exit $RESULT

0 comments on commit d275a21

Please sign in to comment.