diff --git a/gravity.sh b/gravity.sh index 9f11ee42..0b1622e0 100755 --- a/gravity.sh +++ b/gravity.sh @@ -344,14 +344,14 @@ function gravity_reload() { for var in "$@" do case "$var" in - "-f" | "--force" ) force=true;; + "-f" | "--force" ) forceGrav=true;; "-h" | "--help" ) helpFunc;; esac done #Overwrite adlists.default from /etc/.pihole in case any changes have been made. Changes should be saved in /etc/adlists.list -if [[ ${force} == true ]]; then +if [[ ${forceGrav} == true ]]; then echo -n "::: Deleting exising list cache..." ${SUDO} rm /etc/pihole/list.* echo " done!" diff --git a/pihole b/pihole index 64a36c59..428bc6a2 100755 --- a/pihole +++ b/pihole @@ -53,7 +53,7 @@ function updateDashboardFunc { } function updateGravityFunc { - $SUDO /opt/pihole/gravity.sh + $SUDO /opt/pihole/gravity.sh "$@" exit 1 }