First pass on Submission count input validation.
parent
86e5c9b2ac
commit
d6894efe83
|
@ -9,6 +9,17 @@ minsubs=0 #sets the default minimum bound of submission depth
|
|||
minsubarg=$2
|
||||
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 "Sumbssion Count Argument is not an integer"
|
||||
exit
|
||||
else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Todo: Validate the rep count is only numbers.
|
||||
if [[ -z "$rep" ]]; then
|
||||
echo "///"
|
||||
echo "How many submissions to pull? (Default: 1)"
|
||||
|
|
Loading…
Reference in New Issue