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 ::: -j, --json output stats as JSON formatted string
::: -h, --help display this help text ::: -h, --help display this help text
EOM EOM
exit 1 exit 0
} }
if [[ $# = 0 ]]; then if [[ $# = 0 ]]; then

View file

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

View file

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

View file

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

View file

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

2
pihole
View file

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