|
|
|
@ -60,6 +60,7 @@ function helpFunc()
|
|
|
|
|
echo "::: -f, --force Force updating of the hosts files, even if there are no changes"
|
|
|
|
|
echo "::: -q, --quiet output is less verbose"
|
|
|
|
|
echo "::: -h, --help Show this help dialog"
|
|
|
|
|
echo "::: -l, --list Display your whitelisted domains"
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -186,6 +187,17 @@ function Reload() {
|
|
|
|
|
echo " done!"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function DisplayWlist() {
|
|
|
|
|
clear
|
|
|
|
|
echo -e " Displaying Gravity Resistant Domains \n"
|
|
|
|
|
count=1
|
|
|
|
|
while IFS= read -r RD
|
|
|
|
|
do
|
|
|
|
|
echo "${count}: $RD"
|
|
|
|
|
count=$((count+1))
|
|
|
|
|
done < "$whitelist"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
###################################################
|
|
|
|
|
|
|
|
|
|
for var in "$@"
|
|
|
|
@ -196,6 +208,7 @@ do
|
|
|
|
|
"-f" | "--force" ) force=true;;
|
|
|
|
|
"-q" | "--quiet" ) versbose=false;;
|
|
|
|
|
"-h" | "--help" ) helpFunc;;
|
|
|
|
|
"-l" | "--list" ) DisplayWlist;;
|
|
|
|
|
* ) HandleOther "$var";;
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
|