From c1b66a7e5f3e3344c6178703301744c0285f1eb1 Mon Sep 17 00:00:00 2001 From: SleepingCrows Date: Wed, 17 May 2023 12:56:48 -0400 Subject: [PATCH] Input Validation: ADD QUOTES TO EVERYTHING BRO. --- Furaffinity/fa.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Furaffinity/fa.sh b/Furaffinity/fa.sh index e2c875f..bac7711 100644 --- a/Furaffinity/fa.sh +++ b/Furaffinity/fa.sh @@ -11,9 +11,8 @@ 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 + if [[ "$rep != [0-9]*" ]]; then echo "Submission Count Argument is not an integer" exit fi