From b4301b60e228b46a1dd3c5e2ec000c95fdd2bd08 Mon Sep 17 00:00:00 2001 From: SuperNovaa41 Date: Tue, 10 Sep 2024 10:41:44 -0400 Subject: [PATCH] adds no input warning --- mah | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mah b/mah index d658123..5307b09 100755 --- a/mah +++ b/mah @@ -146,6 +146,13 @@ then confirm="--noconfirm" fi +if [[ -z "$@" ]] +then + echo "No input given!" + exit 1 +fi + + for x in $@ do command cd "$DOWNLOAD_DIR"