From 729fe026dc05799ed86acd2731358ab1a805662f Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Tue, 13 Dec 2005 16:02:05 +0100 Subject: [PATCH] tab to space fix --- sh-lib | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/sh-lib b/sh-lib index 06c66b5..8b0af2b 100644 --- a/sh-lib +++ b/sh-lib @@ -433,24 +433,24 @@ function netValidIp function netGetIfaces { - local error_function_=${1:-"eprint"} # function to call on error - local message_="$2" # user supplied error message - local if_='' - local ret_='' - - #ip a|grep 'inet ' |awk '$NF !~ /lo/{print $NF}' - if_="`ip a|grep 'inet ' |awk '{print $NF}'`" - ret_=$? - if [ -z "$if_" ]; then - if [ -z "$message_" ]; then - "$error_function_" "no interfaces found" $ret_ - else - "$error_function_" "$message_" $ret_ - fi - return 1 - fi - dprint "interfaces found" $ret_ - echo "$if_" + local error_function_=${1:-"eprint"} # function to call on error + local message_="$2" # user supplied error message + local if_='' + local ret_='' + + #ip a|grep 'inet ' |awk '$NF !~ /lo/{print $NF}' + if_="`ip a|grep 'inet ' |awk '{print $NF}'`" + ret_=$? + if [ -z "$if_" ]; then + if [ -z "$message_" ]; then + "$error_function_" "no interfaces found" $ret_ + else + "$error_function_" "$message_" $ret_ + fi + return 1 + fi + dprint "interfaces found" $ret_ + echo "$if_" } # FIXME -- 2.1.4