From d0221c90f32dcc693053fe813eda1df03e07ceda Mon Sep 17 00:00:00 2001 From: oblique Date: Thu, 10 Dec 2015 19:02:52 +0200 Subject: [PATCH] Hide nmcli errors --- create_ap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_ap b/create_ap index 658a826..9206159 100755 --- a/create_ap +++ b/create_ap @@ -444,9 +444,9 @@ networkmanager_is_running() { local NMCLI_OUT networkmanager_exists || return 1 if [[ $NM_OLDER_VERSION -eq 1 ]]; then - NMCLI_OUT=$(nmcli -t -f RUNNING nm) + NMCLI_OUT=$(nmcli -t -f RUNNING nm 2> /dev/null) else - NMCLI_OUT=$(nmcli -t -f RUNNING g) + NMCLI_OUT=$(nmcli -t -f RUNNING g 2> /dev/null) fi [[ "$NMCLI_OUT" == "running" ]] }