First pass on Submission count input validation.

main
SleepingCrows 2023-05-17 12:33:05 -04:00
parent 86e5c9b2ac
commit d6894efe83
1 changed files with 11 additions and 0 deletions

View File

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