ci: make CI job fail when check-deps.sh script fails

Previously the check-deps.sh would write information about unexpected
dependencies to stderr, but return exit code 0, so the error would be ignored
by CI. Now it will return code 1 and cause CI to fail if unexpected
dependencies are detected.
This commit is contained in:
Ryan Ofsky 2024-10-01 09:13:20 -04:00
parent d51edecddc
commit fd38711217

View File

@ -194,7 +194,10 @@ cd "$BUILD_DIR/src"
extract_symbols "$TEMP_DIR" extract_symbols "$TEMP_DIR"
if check_libraries "$TEMP_DIR"; then if check_libraries "$TEMP_DIR"; then
echo "Success! No unexpected dependencies were detected." echo "Success! No unexpected dependencies were detected."
RET=0
else else
echo >&2 "Error: Unexpected dependencies were detected. Check previous output." echo >&2 "Error: Unexpected dependencies were detected. Check previous output."
RET=1
fi fi
rm -r "$TEMP_DIR" rm -r "$TEMP_DIR"
exit $RET