From c73b5456ebe07e2b497f79c03a4f156718fa7443 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sat, 28 Jul 2018 21:12:05 -0400 Subject: [PATCH] Fix "which" error leaking Signed-off-by: Mcat12 --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 84e0a14f..539e3e92 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -2058,7 +2058,7 @@ FTLinstall() { # Install the FTL service echo -e "${OVER} ${TICK} ${str}" # dnsmasq can now be stopped and disabled if it exists - if which dnsmasq > /dev/null; then + if which dnsmasq &> /dev/null; then if check_service_active "dnsmasq";then echo " ${INFO} FTL can now resolve DNS Queries without dnsmasq running separately" stop_service dnsmasq @@ -2187,7 +2187,7 @@ FTLcheckUpdate() { local localSha1 # if dnsmasq exists and is running at this point, force reinstall of FTL Binary - if which dnsmasq > /dev/null; then + if which dnsmasq &> /dev/null; then if check_service_active "dnsmasq";then return 0 fi