]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-lib.sh: splitsep fix
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Mon, 15 Nov 2010 16:34:36 +0000 (17:34 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 16 Nov 2010 09:30:33 +0000 (10:30 +0100)
modules.d/99base/dracut-lib.sh

index f0c030b8c0af05ef037e13dbf831d4b4afa6c51c..37659fe0e101abca32d95cecab6ec0acfd6c5c2c 100755 (executable)
@@ -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