Update to comply with current development code

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2017-09-08 19:35:05 +02:00
parent 279e809aaf
commit c9d4995900
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -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}"