Merge pull request #2547 from pi-hole/fix/version-command-no-web

Don't show web version in pihole -v output if not installed
This commit is contained in:
Mark Drobnak
2018-12-27 23:20:16 -05:00
committed by GitHub

View File

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