mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
chech on one argutment
This commit is contained in:
parent
5320114d44
commit
34fbbb9af0
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
# archbootcpio simplified and stripped down
|
||||
# Arch Linux mkinitcpio - modular tool for building an initramfs images
|
||||
# optimized for size and speed
|
||||
# by Tobias Powalowski <tpowa@archlinux.org>
|
||||
|
||||
shopt -s extglob
|
||||
|
||||
|
@ -447,7 +448,7 @@ parseopts "$_opt_short" "${_opt_long[@]}" -- "$@" || exit 1
|
|||
set -- "${OPTRET[@]}"
|
||||
unset _opt_short _opt_long OPTRET
|
||||
|
||||
if [[ -z "$@" ]]; then
|
||||
if [[ -z "$1" ]]; then
|
||||
usage
|
||||
cleanup 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue