mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-15 11:59:04 +00:00
handle passing arguments to version script
This commit is contained in:
parent
013d77488a
commit
77e8be09a1
1 changed files with 3 additions and 2 deletions
5
pihole
5
pihole
|
@ -193,7 +193,8 @@ uninstallFunc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
versionFunc() {
|
versionFunc() {
|
||||||
/opt/pihole/version.sh
|
shift
|
||||||
|
/opt/pihole/version.sh "$@"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,7 +236,7 @@ case "$1" in
|
||||||
"-s" | "setupLCD" ) setupLCDFunction;;
|
"-s" | "setupLCD" ) setupLCDFunction;;
|
||||||
"-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;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue