diff options
author | maximilian attems <maks@debian.org> | 2009-03-30 18:29:05 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2009-03-30 18:31:49 +0200 |
commit | 0cdf39d601750d25e7db39d32a6e654026f001df (patch) | |
tree | c6528635f545754c92c3ad896a1970b32e5ca2af /update-initramfs | |
parent | e0dd249ede887d762b691e90abdc3dfe4ca5ed1f (diff) | |
download | initramfs-tools-0cdf39d601750d25e7db39d32a6e654026f001df.tar.gz initramfs-tools-0cdf39d601750d25e7db39d32a6e654026f001df.zip |
update-initramfs: Fix error message on wrong -k version argument
update-initramfs -k $(uname -a) -t -u
You must specify at least one of -c, -u, or -d.
[..]
which is wrong as -u was reported.
Reported-by: Michael Prokop <mika@grml.org>
Diffstat (limited to 'update-initramfs')
-rwxr-xr-x | update-initramfs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/update-initramfs b/update-initramfs index ad65ef2..be0616a 100755 --- a/update-initramfs +++ b/update-initramfs @@ -504,6 +504,13 @@ while getopts "k:cudyvtb:h?" flag; do esac done +shift $((${OPTIND} - 1)) + +if [ $# -ne 0 ]; then + echo "Invalid argument for option -k." + usage +fi + # Validate arguments if [ -z "${mode}" ]; then usage "You must specify at least one of -c, -u, or -d." |