mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Actually pass through the argument to the function
This commit is contained in:
parent
29b548f07c
commit
77135ca3c7
1 changed files with 3 additions and 2 deletions
5
pihole
5
pihole
|
@ -63,7 +63,8 @@ function setupLCDFunction {
|
||||||
}
|
}
|
||||||
|
|
||||||
function queryFunc {
|
function queryFunc {
|
||||||
for list in /etc/pihole/list.*;do echo $list;grep '$@' $list;done
|
domain=$2
|
||||||
|
for list in /etc/pihole/list.*;do echo $list;grep ${domain} $list;done
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +123,7 @@ case "$1" in
|
||||||
"-c" | "chronometer" ) chronometerFunc "$@";;
|
"-c" | "chronometer" ) chronometerFunc "$@";;
|
||||||
"-h" | "help" ) helpFunc;;
|
"-h" | "help" ) helpFunc;;
|
||||||
"-v" | "version" ) versionFunc;;
|
"-v" | "version" ) versionFunc;;
|
||||||
"-q" | "query" ) queryFunc;;
|
"-q" | "query" ) queryFunc "$@";;
|
||||||
"uninstall" ) uninstallFunc;;
|
"uninstall" ) uninstallFunc;;
|
||||||
* ) helpFunc;;
|
* ) helpFunc;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue