Update argument handling logic
This commit is contained in:
parent
e89f617299
commit
881a79f4e8
1 changed files with 12 additions and 9 deletions
|
@ -11,15 +11,18 @@ INSTALL_GUI_PACKAGES=
|
|||
|
||||
# Parse arguments
|
||||
for arg in "${@}"; do
|
||||
if [ "${arg}" == "--noconfirm" ]; then
|
||||
case "${arg}" in
|
||||
"--noconfirm")
|
||||
# I don't know what shellcheck is seeing here...
|
||||
# shellcheck disable=SC2037
|
||||
PACMAN_FLAGS=${PACMAN_FLAGS} --noconfirm
|
||||
elif [ "${arg}" == "--gui" ]; then
|
||||
;;
|
||||
"--gui")
|
||||
INSTALL_GUI_PACKAGES=true
|
||||
else
|
||||
;;
|
||||
*)
|
||||
echo ":: Warning: Unknown argument \"${arg}\""
|
||||
fi
|
||||
esac
|
||||
done
|
||||
|
||||
# Source /etc/os-release
|
||||
|
|
Loading…
Reference in a new issue