From aedd710e9a60a8e32ff145d816a6bab33a8bda22 Mon Sep 17 00:00:00 2001 From: SleepingCrows Date: Wed, 17 May 2023 13:02:55 -0400 Subject: [PATCH] What if $rep isn't quoted? --- Furaffinity/fa.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Furaffinity/fa.sh b/Furaffinity/fa.sh index a5722a0..b43e036 100644 --- a/Furaffinity/fa.sh +++ b/Furaffinity/fa.sh @@ -11,12 +11,13 @@ echo "===FA.SH: The Random FA Sub Generator===" # Check if the rep argument was filled already, test for non-numbers. -if [ -n "$rep"]; then - if [[ "$rep != [0-9]*" ]]; then +# if [[ -n "$rep"]]; then +# This works, only if it's empty. wat. + if [[ $rep != [0-9]* ]]; then echo "Submission Count Argument is not an integer" exit fi -fi +# fi # Todo: Validate the rep count is only numbers. if [[ -z "$rep" ]]; then