diff --git a/scripts/utilities.sh b/scripts/utilities.sh index 2290925..0cf4bd6 100644 --- a/scripts/utilities.sh +++ b/scripts/utilities.sh @@ -449,12 +449,14 @@ function dependency_check() { function system_check_webui() { ### check system for an installed haproxy service - [[ $(dpkg-query -f'${Status}' --show haproxy 2>/dev/null) = *\ installed ]] && \ - HAPROXY_FOUND="true" + if [[ $(dpkg-query -f'${Status}' --show haproxy 2>/dev/null) = *\ installed ]]; then + HAPROXY_FOUND="true" + fi ### check system for an installed apache2 service - [[ $(dpkg-query -f'${Status}' --show apache2 2>/dev/null) = *\ installed ]] && \ - APACHE2_FOUND="true" + if [[ $(dpkg-query -f'${Status}' --show apache2 2>/dev/null) = *\ installed ]]; then + APACHE2_FOUND="true" + fi } function fetch_webui_ports() {