[PATCH] dracut-lib.sh: splitsep fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 modules.d/99base/dracut-lib.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
index f0c030b..37659fe 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
 
-- 
1.7.3.2

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux