about time we exit 0'd

pull/790/head
Promofaux 8 years ago
parent 5e883239f9
commit 9352ba6e4a

@ -25,23 +25,23 @@ fi
function whitelistFunc { function whitelistFunc {
shift shift
/opt/pihole/whitelist.sh "$@" /opt/pihole/whitelist.sh "$@"
exit 1 exit 0
} }
function blacklistFunc { function blacklistFunc {
shift shift
/opt/pihole/blacklist.sh "$@" /opt/pihole/blacklist.sh "$@"
exit 1 exit 0
} }
function debugFunc { function debugFunc {
/opt/pihole/piholeDebug.sh /opt/pihole/piholeDebug.sh
exit 1 exit 0
} }
function flushFunc { function flushFunc {
/opt/pihole/piholeLogFlush.sh /opt/pihole/piholeLogFlush.sh
exit 1 exit 0
} }
@ -110,22 +110,22 @@ function updatePiholeFunc {
echo "::: See https://changes.pi-hole.net for details" echo "::: See https://changes.pi-hole.net for details"
fi fi
exit 1 exit 0
} }
function reconfigurePiholeFunc { function reconfigurePiholeFunc {
/etc/.pihole/automated\ install/basic-install.sh /etc/.pihole/automated\ install/basic-install.sh
exit 1; exit 0;
} }
function updateGravityFunc { function updateGravityFunc {
/opt/pihole/gravity.sh "$@" /opt/pihole/gravity.sh "$@"
exit 1 exit 0
} }
function setupLCDFunction { function setupLCDFunction {
/opt/pihole/setupLCD.sh /opt/pihole/setupLCD.sh
exit 1 exit 0
} }
function queryFunc { function queryFunc {
@ -139,24 +139,24 @@ function queryFunc {
fi fi
echo "" echo ""
done done
exit 1 exit 0
} }
function chronometerFunc { function chronometerFunc {
shift shift
/opt/pihole/chronometer.sh "$@" /opt/pihole/chronometer.sh "$@"
exit 1 exit 0
} }
function uninstallFunc { function uninstallFunc {
/opt/pihole/uninstall.sh /opt/pihole/uninstall.sh
exit 1 exit 0
} }
function versionFunc { function versionFunc {
/opt/pihole/version.sh /opt/pihole/version.sh
exit 1 exit 0
} }
function helpFunc { function helpFunc {
@ -178,7 +178,7 @@ function helpFunc {
echo "::: -v, version Show current versions" echo "::: -v, version Show current versions"
echo "::: -q, query Query the adlists for a specific domain" echo "::: -q, query Query the adlists for a specific domain"
echo "::: uninstall Uninstall Pi-Hole from your system :(!" echo "::: uninstall Uninstall Pi-Hole from your system :(!"
exit 1 exit 0
} }
if [[ $# = 0 ]]; then if [[ $# = 0 ]]; then

Loading…
Cancel
Save