mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Fix invalid option case
* Ensure `pihole -q doubleclick.com asd` exits with error
This commit is contained in:
parent
d56beedd7a
commit
54a85d3a63
2
pihole
2
pihole
@ -161,7 +161,7 @@ Options:
|
|||||||
# If $options contain non ASCII characters, convert to punycode
|
# If $options contain non ASCII characters, convert to punycode
|
||||||
case "${options}" in
|
case "${options}" in
|
||||||
"" ) str="No domain specified";;
|
"" ) str="No domain specified";;
|
||||||
*$'\n'* ) str="Unknown query option specified";;
|
*" "* ) str="Unknown query option specified";;
|
||||||
*[![:ascii:]]* ) domainQuery=$(idn2 "${options}");;
|
*[![:ascii:]]* ) domainQuery=$(idn2 "${options}");;
|
||||||
* ) domainQuery="${options}";;
|
* ) domainQuery="${options}";;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user