Input Validation: Syntax Fix?
parent
9a93dd1c5f
commit
bc2449957c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue