diff --git a/Furaffinity/fa.sh b/Furaffinity/fa.sh index 5ac94a7..3e67fbd 100644 --- a/Furaffinity/fa.sh +++ b/Furaffinity/fa.sh @@ -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)"