projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not accept any command line arguments we can't handle
[grml-live.git]
/
grml-live
diff --git
a/grml-live
b/grml-live
index
3964cbd
..
0aed77e
100755
(executable)
--- a/
grml-live
+++ b/
grml-live
@@
-337,6
+337,11
@@
while getopts "a:C:c:d:D:e:g:i:I:o:r:s:t:U:v:AbBFhnNqQuVz" opt; do
esac
done
shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter
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 {{{
# }}}
# read local (non-packaged) configuration {{{