fix: reject unparsed Linux build arguments

This commit is contained in:
Ian Chua
2026-09-17 15:13:33 +08:00
parent ee1b845746
commit a4c55c9976
+6
View File
@@ -146,6 +146,12 @@ if [ ${OPTIND} -eq 1 ] ; then
exit 1
fi
shift $((OPTIND - 1))
if [ $# -ne 0 ] ; then
echo "Unknown argument '$1', aborting."
exit 1
fi
if [[ -n "${CLEAN_DOCKER_IMAGE}" ]] && [[ -z "${USE_DOCKER}" ]] ; then
echo "Error: -F requires -g."
exit 1