From 0ce8e8f2496d409438094988d37cf9cf45afd918 Mon Sep 17 00:00:00 2001 From: SleepingCrows Date: Wed, 17 May 2023 12:55:39 -0400 Subject: [PATCH] Input Validation: Line 14 token error. --- Furaffinity/fa.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Furaffinity/fa.sh b/Furaffinity/fa.sh index ac72e1e..e2c875f 100644 --- a/Furaffinity/fa.sh +++ b/Furaffinity/fa.sh @@ -11,11 +11,12 @@ 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 - echo "Submission Count Argument is not an integer" - exit - fi +if [[ -n $rep]] + then + if [[ $rep != [0-9]* ]]; then + echo "Submission Count Argument is not an integer" + exit + fi fi # Todo: Validate the rep count is only numbers.