Allow emails which include `-h` in them

For example, mcat12@pi-hole.net would previously spit out the help message
This commit is contained in:
Mcat12 2017-10-07 16:06:16 -04:00 committed by GitHub
parent 7875df0d6b
commit 67a5594909
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ Options:
}
SetAdminEmail() {
if [[ "${1}" == *"-h"* ]]; then
if [[ "${1}" == "-h" || "${1}" == "--help" ]]; then
echo "Usage: pihole -a email <address>
Example: 'pihole -a email admin@address.com'
Set an administrative contact address for the Block Page