Simplify pihole -v

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2023-12-09 22:31:36 +01:00
parent a6c0d279b6
commit fe4d934a40
2 changed files with 31 additions and 112 deletions
+2 -3
View File
@@ -140,7 +140,6 @@ uninstallFunc() {
}
versionFunc() {
shift
exec "${PI_HOLE_SCRIPT_DIR}"/version.sh "$@"
}
@@ -508,7 +507,7 @@ Options:
-up, updatePihole Update Pi-hole subsystems
Add '--check-only' to exit script before update is performed.
-v, version Show installed versions of Pi-hole, Web Interface & FTL
Add '-h' for more info on version usage
Use -vv for detailed information.
uninstall Uninstall Pi-hole from your system
status Display the running status of Pi-hole subsystems
enable Enable Pi-hole subsystems
@@ -531,7 +530,7 @@ fi
need_root=1
case "${1}" in
"-h" | "help" | "--help" ) helpFunc;;
"-v" | "version" ) versionFunc "$@";;
"-v" | "-vv" | "version" ) versionFunc "$@";;
"-c" | "chronometer" ) chronometerFunc "$@";;
"-q" | "query" ) queryFunc "$@";;
"status" ) statusFunc "$2";;