Input Validation: Line 14 token error.
parent
bc2449957c
commit
0ce8e8f249
|
@ -11,8 +11,9 @@ 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
|
||||
|
|
Loading…
Reference in New Issue