]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
i18n: fixed config file parsing in hostonly mode
authorHarald Hoyer <harald@redhat.com>
Fri, 18 Feb 2011 08:33:06 +0000 (09:33 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 18 Feb 2011 08:33:06 +0000 (09:33 +0100)
I accidently removed some parenthesis.

modules.d/10i18n/module-setup.sh

index a524d2d085a050e659c97df431d126f7a217c543..57a0f9af5f6b6d31d36ff5b012a5d15d688af038 100755 (executable)
@@ -68,10 +68,10 @@ install() {
 
         for item in $@
         do
-            item=${item/:/ }
+            item=(${item/:/ })
             for map in ${item[1]//,/ }
             do
-                map=${map//-/ }
+                map=(${map//-/ })
                 value=$(grep "^${map[0]}=" "${item[0]}")
                 value=${value#*=}
                 echo "${map[1]:-${map[0]}}=${value}"