From: Michael Gebetsroither Date: Wed, 21 Dec 2005 01:52:43 +0000 (+0100) Subject: trim the list of nameservers from netGetNameserers, there should be no whitespace... X-Git-Tag: 1.02.06 X-Git-Url: http://git.grml.org/?p=grml-shlib.git;a=commitdiff_plain;h=174f38e91192fb8a1f39298ec484a6e0f3ed9f84 trim the list of nameservers from netGetNameserers, there should be no whitespace at the end --- diff --git a/sh-lib b/sh-lib index 84d45e0..9896f71 100644 --- a/sh-lib +++ b/sh-lib @@ -545,7 +545,7 @@ function netGetNameservers fi setCLang - ns_=`awk '/^nameserver/{printf "%s ",$2}' $file_` + ns_=`awk '/^nameserver/{printf "%s ",$2}' $file_ |xargs echo` restoreLang if [ -z "$ns_" ]; then if [ -z "$message_" ]; then @@ -703,7 +703,7 @@ function _setDebugLevel local debug_="${DEBUG:-0}" VERBOSE__="$debug_" } -_checkBootParam +_setDebugLevel # }}} # END OF FILE