From 3d87398721b83e7d765e9f2a5b3284b77fb06544 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sat, 28 Jul 2018 20:50:04 -0400 Subject: [PATCH] Fix `check_service_active` leaking error output 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 c7158435..84e0a14f 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1370,11 +1370,11 @@ check_service_active() { # If systemctl exists, if command -v systemctl &> /dev/null; then # use that to check the status of the service - systemctl is-enabled "${1}" > /dev/null + systemctl is-enabled "${1}" &> /dev/null # Otherwise, else # fall back to service command - service "${1}" status > /dev/null + service "${1}" status &> /dev/null fi }