Don't show web version in pihole -v output if not installed

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12 2018-12-12 14:55:09 -05:00
parent a36734db66
commit be2d494fcf
No known key found for this signature in database
GPG key ID: ABB8FC9789AF524D

View file

@ -136,8 +136,16 @@ errorOutput() {
}
defaultOutput() {
# Source the setupvars config file
# shellcheck disable=SC1091
. /etc/pihole/setupVars.conf
versionOutput "pi-hole" "$@"
versionOutput "AdminLTE" "$@"
if [[ "${INSTALL_WEB_INTERFACE}" == true ]]; then
versionOutput "AdminLTE" "$@"
fi
versionOutput "FTL" "$@"
}