First pass on dependency checks.

main
Sleeping Crows 2023-05-18 23:06:42 -04:00
parent 9db2002a9e
commit 5b4dcd9c9e
1 changed files with 30 additions and 0 deletions

View File

@ -8,6 +8,36 @@ maxsubs=52089873 #sets the default maximum bound of submission depth
minsubs=0 #sets the default minimum bound of submission depth
minsubarg=$2
#Check for dependencies
if command -v curl >/dev/null 2>&1 ; then
:
else
echo "curl is not available. exiting."
exit
fi
if command -v xdg-open >/dev/null 2>&1 ; then
:
else
echo "xdg-open is not available. exiting."
exit
fi
if command -v shuf >/dev/null 2>&1 ; then
:
else
echo "shuf is not available. exiting."
exit
fi
if command -v grep >/dev/null 2>&1 ; then
:
else
echo "grep is not available. exiting."
exit
fi
echo "===FA.SH: The Random FA Sub Generator==="
validate=1