Input Validation: ADD QUOTES TO EVERYTHING BRO.

main
SleepingCrows 2023-05-17 12:56:48 -04:00
parent 0ce8e8f249
commit c1b66a7e5f
1 changed files with 2 additions and 3 deletions

View File

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