X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=0aed77ed9a7cd0624ecd61715068fd8f84a34956;hp=45b93e614a189761da2f28ca9e4a1c54fa9f2a96;hb=644f7bd9efceda1d9bb4c0985b02c3a98241844c;hpb=4e027c7e8e37512e54f4fa2241a8a9424fba3352 diff --git a/grml-live b/grml-live index 45b93e6..0aed77e 100755 --- a/grml-live +++ b/grml-live @@ -333,10 +333,15 @@ while getopts "a:C:c:d:D:e:g:i:I:o:r:s:t:U:v:AbBFhnNqQuVz" opt; do U) CHOWN_USER="$OPTARG" ;; V) VERBOSE="-v" ;; z) SQUASHFS_ZLIB=1 ;; - ?) echo "invalid option -$OPTARG" >&2; bailout 1 ;; + ?) echo "invalid option -$OPTARG" >&2; usage; bailout 1 ;; esac done shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter + +if [ -n "$1" ] ; then + echo "Error: unknown argument '$1' in options. Exiting to avoid possible data loss." >&2 + bailout 1 +fi # }}} # read local (non-packaged) configuration {{{