From 7a8a33b6cdcb7ae614f9fab4816d9b86b30af445 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Amadeusz=20=C5=BBo=C5=82nowski?= Date: Mon, 15 Nov 2010 17:34:36 +0100 Subject: [PATCH] dracut-lib.sh: splitsep fix --- modules.d/99base/dracut-lib.sh | 4 ++-- 1 file 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 -- 2.7.4