Merge pull request #952 from pi-hole/fix/exit_codes

Fix/exit codes
This commit is contained in:
Mcat12 2016-12-01 18:24:30 -05:00 committed by GitHub
commit d8912fd0a7
6 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ displayHelp() {
::: -j, --json output stats as JSON formatted string
::: -h, --help display this help text
EOM
exit 1
exit 0
}
if [[ $# = 0 ]]; then

View File

@ -47,7 +47,7 @@ helpFunc() {
::: -h, --help Show this help dialog
::: -l, --list Display your ${word}listed domains
EOM
exit 1
exit 0
}
HandleOther(){

View File

@ -86,7 +86,7 @@ helpFunc() {
::: -h, --help Show this help dialog
:::
EOM
exit 1
exit 0
}
if [[ $# = 0 ]]; then

View File

@ -23,7 +23,7 @@ helpFunc() {
::: -f, fahrenheit Set Fahrenheit temperature unit
::: -h, --help Show this help dialog
EOM
exit 1
exit 0
}
SetTemperatureUnit(){

View File

@ -23,7 +23,7 @@ helpFunc() {
::: -f, --force Force lists to be downloaded, even if they don't need updating.
::: -h, --help Show this help dialog
EOM
exit 1
exit 0
}

2
pihole
View File

@ -227,7 +227,7 @@ helpFunc() {
::: pihole disable 5m - will disable blocking for 5 minutes
::: restartdns Restart dnsmasq
EOM
exit 1
exit 0
}
if [[ $# = 0 ]]; then