mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Using shift
to allow passing multiple arguments
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
parent
f3c27f706f
commit
233453267e
1 changed files with 2 additions and 2 deletions
4
pihole
4
pihole
|
@ -425,7 +425,7 @@ tricorderFunc() {
|
|||
}
|
||||
|
||||
updateCheckFunc() {
|
||||
"${PI_HOLE_SCRIPT_DIR}"/updatecheck.sh "$1"
|
||||
"${PI_HOLE_SCRIPT_DIR}"/updatecheck.sh "$@"
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
@ -553,7 +553,7 @@ case "${1}" in
|
|||
"restartdns" ) restartDNS "$2";;
|
||||
"-a" | "admin" ) webpageFunc "$@";;
|
||||
"checkout" ) piholeCheckoutFunc "$@";;
|
||||
"updatechecker" ) updateCheckFunc "$2";;
|
||||
"updatechecker" ) shift; updateCheckFunc "$@";;
|
||||
"arpflush" ) arpFunc "$@";;
|
||||
"-t" | "tail" ) tailFunc "$2";;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue