]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
10i18n: fixed i18n_vars parsing
authorHarald Hoyer <harald@redhat.com>
Wed, 21 Jul 2010 12:21:47 +0000 (14:21 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 21 Jul 2010 12:21:47 +0000 (14:21 +0200)
gather_vars() should replace "every" occurance of the seperator

modules.d/10i18n/install

index 32c9f470b243c735428502baba7a17d3f00237b4..83999e53de4c7fd2e13cca1679e67b0e8b9a6810 100755 (executable)
@@ -59,9 +59,9 @@ gather_vars() {
     for item in $@
     do
         item=(${item/:/ })
-        for map in ${item[1]/,/ }
+        for map in ${item[1]//,/ }
         do
-            map=(${map/-/ })
+            map=(${map//-/ })
             value=$(grep "^${map[0]}=" "${item[0]}")
             value=${value#*=}
             echo "${map[1]:-${map[0]}}=${value}"