From 20521337e4ac1bf066ab075b059e76492b37671d Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Sun, 20 Aug 2017 15:19:40 -0500 Subject: [PATCH] Fixed a bug introduced last commit by outdated statements. --- lib/InterfaceUtils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/InterfaceUtils.sh b/lib/InterfaceUtils.sh index 5b67446..22b0930 100644 --- a/lib/InterfaceUtils.sh +++ b/lib/InterfaceUtils.sh @@ -43,8 +43,8 @@ function interface_physical() { if [ -r "$interface_physical_path/name" ] then InterfacePhysical="`cat "$interface_physical_path/name"`" fi - if [ ! "${InterfacePhysical// }" ]; then - else InterfacePhysical="`ls -l "$interface_physical_path" | sed 's/^.*\/\([a-zA-Z0-9_-]*\)$/\1/'`" + if [ ! "${InterfacePhysical// }" ] + then InterfacePhysical="`ls -l "$interface_physical_path" | sed 's/^.*\/\([a-zA-Z0-9_-]*\)$/\1/'`" fi fi