mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50: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
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue