Revise integration script to return correct exit code

Before it was always returning 1
This commit is contained in:
ionutboangiu
2024-05-16 18:21:21 +03:00
committed by Dan Christian Bogos
parent 41c62c1291
commit 6ac644e85c

View File

@@ -46,8 +46,11 @@ for test in "${single_run_packages[@]}"; do
done
# Check the results and exit with an appropriate code
pass=1
pass=0
for val in "${results[@]}"; do
(( pass=pass||val))
if [ "$val" -ne 0 ]; then
pass=1
break
fi
done
exit $pass