Attempt 2: input validation
parent
25e4a4809b
commit
9a93dd1c5f
|
@ -11,7 +11,7 @@ echo "===FA.SH: The Random FA Sub Generator==="
|
||||||
|
|
||||||
# Check if the rep argument was filled already, test for non-numbers.
|
# 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
|
if [[ "$rep" != [0-9]* ]]; then
|
||||||
echo "Submission Count Argument is not an integer"
|
echo "Submission Count Argument is not an integer"
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in New Issue