Skip to content

Commit d275a21

Browse files
committed
Fix return code handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 962a51f commit d275a21

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

autotest-checkers.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
#!/usr/bin/env bash
22
#
3+
RESULT=0
34

45
bash ./build/autoloaderchecker.sh
6+
RESULT=$(($RESULT+$?))
57
bash ./build/mergejschecker.sh
8+
RESULT=$(($RESULT+$?))
69
php ./build/signed-off-checker.php
10+
RESULT=$(($RESULT+$?))
711
php ./build/translation-checker.php
12+
RESULT=$(($RESULT+$?))
813
php ./build/htaccess-checker.php
14+
RESULT=$(($RESULT+$?))
915

1016

1117
for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do
@@ -29,5 +35,7 @@ for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do
2935
else
3036
./occ app:check-code "$app"
3137
fi
32-
RESULT=$?
38+
RESULT=$(($RESULT+$?))
3339
done;
40+
41+
exit $RESULT

0 commit comments

Comments
 (0)