From: Rob Browning Date: Sat, 12 Jan 2013 16:23:04 +0000 (-0600) Subject: Check the arguments passed to ./configure. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1811823a94bf816a66334b55fbba362a44a505ee;p=packages%2Fb%2Fbup.git Check the arguments passed to ./configure. For now, don't allow arguments, since ./configure doesn't actually support any. Previously "./configure --help" would print misleading information, and any other arguments were silently ignored. Thanks to Alexander Barton for the report. Signed-off-by: Rob Browning Reviewed-by: Zoran Zaric --- diff --git a/configure b/configure index d9626dc..f7cb928 100755 --- a/configure +++ b/configure @@ -1,3 +1,9 @@ #!/bin/sh + +if test "$#" -gt 0; then + echo "Usage: configure" 1>&2 + exit 1 +fi + cd config && exec ./configure "$@"