From c9d49959008fb6adaed7048573599c9718c29746 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 8 Sep 2017 19:35:05 +0200 Subject: [PATCH] Update to comply with current development code Signed-off-by: DL6ER --- advanced/Scripts/webpage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 4441575f..fbba3f74 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -234,8 +234,8 @@ RestartDNS() { output=$( { service dnsmasq restart; } 2>&1 ) fi - if [[ "$?" == 0 ]]; then - echo -e "${OVER} ${TICK} ${str}" + if [[ -z "${output}" ]]; then + [[ -t 1 ]] && echo -e "${OVER} ${TICK} ${str}" else [[ ! -t 1 ]] && OVER="" echo -e "${OVER} ${CROSS} ${output}"