Merge pull request #1 from SuperNovaa41/errormsg

adds no input warning
This commit is contained in:
Nathan Singer 2024-09-10 10:45:25 -04:00 committed by GitHub
commit be0f53f3c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

7
mah
View File

@ -146,6 +146,13 @@ then
confirm="--noconfirm" confirm="--noconfirm"
fi fi
if [[ -z "$@" ]]
then
echo "No input given!"
exit 1
fi
for x in $@ for x in $@
do do
command cd "$DOWNLOAD_DIR" command cd "$DOWNLOAD_DIR"