Skip to content

Commit e13c7b1

Browse files
committed
Return error without stopping
1 parent 8dc4dcb commit e13c7b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/git_update_sources.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export RED='\033[0;31m'
1212
export GREEN='\033[0;32m'
1313
export BLUE='\033[0;34m'
1414
export YELLOW='\033[0;33m'
15-
15+
export error=0;
1616

1717
if [ "x$1" == "x" ]; then
1818
echo "Usage: $0 dir_document_of_git_repositories [subdir|all]"
@@ -85,6 +85,7 @@ do
8585
php build/generate_filelist_xml.php release=auto-sellyoursaas buildzip=1
8686
if [ $? -ne 0 ]; then
8787
echo "!!!!! ERROR Failed to generate the signature file"
88+
error=1
8889
#exit 1; # We disable exit so we continue with next dir, so only dir in error is not built
8990
fi
9091
fi
@@ -110,3 +111,4 @@ do
110111
done
111112

112113
echo "Finished."
114+
exit $error

0 commit comments

Comments
 (0)