From 4965db025446fe0e00e56a859638f6970fb05624 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Mon, 8 Mar 2021 09:11:16 +0100 Subject: [PATCH] Handle too many arguments --- arch-config/scripts/arch-config.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch-config/scripts/arch-config.sh b/arch-config/scripts/arch-config.sh index 7f23b339..ce9bdbcc 100755 --- a/arch-config/scripts/arch-config.sh +++ b/arch-config/scripts/arch-config.sh @@ -61,6 +61,9 @@ if [[ "$#" -eq 1 ]]; then echo "-h, --help Show help menu" echo "-t, --theme Show theme selection screen" fi +elif [[ "$#" -gt 1 ]]; then + echo "Too many arguments" + exit 1 fi #delete previous backups