chech on one argutment

This commit is contained in:
Tobias Powalowski 2023-03-16 07:36:15 +01:00
parent 5320114d44
commit 34fbbb9af0

View file

@ -4,6 +4,7 @@
# archbootcpio simplified and stripped down # archbootcpio simplified and stripped down
# Arch Linux mkinitcpio - modular tool for building an initramfs images # Arch Linux mkinitcpio - modular tool for building an initramfs images
# optimized for size and speed # optimized for size and speed
# by Tobias Powalowski <tpowa@archlinux.org>
shopt -s extglob shopt -s extglob
@ -447,7 +448,7 @@ parseopts "$_opt_short" "${_opt_long[@]}" -- "$@" || exit 1
set -- "${OPTRET[@]}" set -- "${OPTRET[@]}"
unset _opt_short _opt_long OPTRET unset _opt_short _opt_long OPTRET
if [[ -z "$@" ]]; then if [[ -z "$1" ]]; then
usage usage
cleanup 0 cleanup 0
fi fi