Pass only the correct argument

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign 2022-11-23 14:07:30 -03:00
parent 983d79b3e6
commit f3c27f706f
No known key found for this signature in database
GPG key ID: AE3C7FC910687F33

4
pihole
View file

@ -425,7 +425,7 @@ tricorderFunc() {
}
updateCheckFunc() {
"${PI_HOLE_SCRIPT_DIR}"/updatecheck.sh "$@"
"${PI_HOLE_SCRIPT_DIR}"/updatecheck.sh "$1"
exit 0
}
@ -553,7 +553,7 @@ case "${1}" in
"restartdns" ) restartDNS "$2";;
"-a" | "admin" ) webpageFunc "$@";;
"checkout" ) piholeCheckoutFunc "$@";;
"updatechecker" ) updateCheckFunc "$@";;
"updatechecker" ) updateCheckFunc "$2";;
"arpflush" ) arpFunc "$@";;
"-t" | "tail" ) tailFunc "$2";;
esac