Commit 46b11b4b authored by Jonas Termansen's avatar Jonas Termansen

Fix update-initrd(8) not erroring on missing option arguments.

Remove unimplemented --help and --version options.
parent 65a960da
......@@ -37,8 +37,6 @@ for argument do
--) dashdash=yes ;;
--sysroot=*) sysroot=$parameter ;;
--sysroot) previous_option=sysroot ;;
--help) show_help ;;
--version) show_version ;;
-*) echo "$0: unrecognized option $argument" >&2
$option_checking && exit 1 ;;
*) echo "$0: unexpected operand $argument" >&2
......@@ -46,6 +44,11 @@ for argument do
esac
done
if test -n "$previous_option"; then
echo "$0: option '$argument' requires an argument" >&2
exit 1
fi
sysmerge=false
exec_prefix="$sysroot"
if [ -d "$sysroot/sysmerge" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment