Attempt 2: input validation

main
SleepingCrows 2023-05-17 12:52:41 -04:00
parent 25e4a4809b
commit 9a93dd1c5f
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ 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 [ -n $rep]; then
if [[ "$rep" != [0-9]* ]]; then
echo "Submission Count Argument is not an integer"
exit