From ea2c395fc9634d7cddc6c24eec3f0fd210e32eb0 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 12 Dec 2017 09:33:20 -0500 Subject: [PATCH] shorter: if ; then --- iiab-network | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iiab-network b/iiab-network index 9ab689069..cff85518c 100755 --- a/iiab-network +++ b/iiab-network @@ -32,7 +32,9 @@ if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log fi # Ubuntu desktop might be using NM - split out. -if [[ `which nmcli` ]]; then +# if [ $(which nmcli) ]; then +# if [[ `which nmcli` ]]; then +if which nmcli; then nmcli d >> iiab-network.log nmcli c >> iiab-network.log fi