mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-18 14:32:36 +00:00
fix: reject unparsed Linux build arguments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user