From 9ab97af45184602d4f386f4021d21ab15021a8e4 Mon Sep 17 00:00:00 2001 From: oblique Date: Sun, 17 Aug 2014 01:10:50 +0300 Subject: [PATCH] networkmanager_is_running: we don't need to redirect stderr in /dev/null --- create_ap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_ap b/create_ap index 0df09e4..f8a9695 100755 --- a/create_ap +++ b/create_ap @@ -107,9 +107,9 @@ networkmanager_is_running() { NM_VER=$(nmcli -v | grep -m1 -oE '[0-9]+(\.[0-9]+)*\.[0-9]+') version_cmp $NM_VER 0.9.10 if [[ $? -eq 1 ]]; then - NMCLI_OUT=$(nmcli -t -f RUNNING nm 2> /dev/null) + NMCLI_OUT=$(nmcli -t -f RUNNING nm) else - NMCLI_OUT=$(nmcli -t -f RUNNING g 2> /dev/null) + NMCLI_OUT=$(nmcli -t -f RUNNING g) fi [[ "$NMCLI_OUT" == "running" ]] }