|
|
|
@ -114,11 +114,11 @@ defaultOutput() {
|
|
|
|
|
helpFunc() {
|
|
|
|
|
echo "Usage: pihole -v [repo | option] [option]
|
|
|
|
|
Example: 'pihole -v -p -l'
|
|
|
|
|
Show Pi-hole, Admin Console & FTL versions
|
|
|
|
|
Show Pi-hole, Web Console & FTL versions
|
|
|
|
|
|
|
|
|
|
Repositories:
|
|
|
|
|
-p, --pihole Only retrieve info regarding Pi-hole repository
|
|
|
|
|
-a, --admin Only retrieve info regarding web repository
|
|
|
|
|
-w, --web Only retrieve info regarding web repository
|
|
|
|
|
-f, --ftl Only retrieve info regarding FTL repository
|
|
|
|
|
|
|
|
|
|
Options:
|
|
|
|
@ -131,7 +131,7 @@ Options:
|
|
|
|
|
|
|
|
|
|
case "${1}" in
|
|
|
|
|
"-p" | "--pihole" ) shift; versionOutput "Pi-hole" "$@";;
|
|
|
|
|
"-a" | "--admin" ) shift; versionOutput "web" "$@";;
|
|
|
|
|
"-w" | "--web" ) shift; versionOutput "web" "$@";;
|
|
|
|
|
"-f" | "--ftl" ) shift; versionOutput "FTL" "$@";;
|
|
|
|
|
"-h" | "--help" ) helpFunc;;
|
|
|
|
|
* ) defaultOutput "$@";;
|
|
|
|
|