handle passing arguments to version script

This commit is contained in:
Adam Warner 2016-10-18 12:07:42 +01:00
parent 013d77488a
commit 77e8be09a1

5
pihole
View file

@ -193,7 +193,8 @@ uninstallFunc() {
}
versionFunc() {
/opt/pihole/version.sh
shift
/opt/pihole/version.sh "$@"
exit 0
}
@ -235,7 +236,7 @@ case "$1" in
"-s" | "setupLCD" ) setupLCDFunction;;
"-c" | "chronometer" ) chronometerFunc "$@";;
"-h" | "help" ) helpFunc;;
"-v" | "version" ) versionFunc;;
"-v" | "version" ) versionFunc "$@";;
"-q" | "query" ) queryFunc "$@";;
"uninstall" ) uninstallFunc;;
* ) helpFunc;;