mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 06:08:21 +00:00
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:
parent
7875df0d6b
commit
67a5594909
@ -418,7 +418,7 @@ Options:
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetAdminEmail() {
|
SetAdminEmail() {
|
||||||
if [[ "${1}" == *"-h"* ]]; then
|
if [[ "${1}" == "-h" || "${1}" == "--help" ]]; then
|
||||||
echo "Usage: pihole -a email <address>
|
echo "Usage: pihole -a email <address>
|
||||||
Example: 'pihole -a email admin@address.com'
|
Example: 'pihole -a email admin@address.com'
|
||||||
Set an administrative contact address for the Block Page
|
Set an administrative contact address for the Block Page
|
||||||
|
Loading…
Reference in New Issue
Block a user