From: Amadeusz Żołnowski Date: Mon, 15 Nov 2010 16:34:36 +0000 (+0100) Subject: dracut-lib.sh: splitsep fix X-Git-Tag: 008~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a8a33b6cdcb7ae614f9fab4816d9b86b30af445;p=thirdparty%2Fdracut.git dracut-lib.sh: splitsep fix --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index f0c030b8c..37659fe0e 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -183,10 +183,10 @@ splitsep() { local tmp while [ -n "$str" -a -n "$*" ]; do - tmp="${str%%:*}" + tmp="${str%%$sep*}" eval "$1=${tmp}" str="${str#$tmp}" - str="${str#:}" + str="${str#$sep}" shift done