Input Validation: Line 14 token error.

main
SleepingCrows 2023-05-17 12:55:39 -04:00
parent bc2449957c
commit 0ce8e8f249
1 changed files with 6 additions and 5 deletions

View File

@ -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.