summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs7
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."