diff options
author | Thomas Bächler <thomas@archlinux.org> | 2011-04-05 18:20:16 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-04-05 18:20:16 +0200 |
commit | 977583e34d21d59493fe71bf2f94bfe185673fa7 (patch) | |
tree | 2f576b05d8aea025290e0438d2de224fcd258baa /init | |
parent | 5409dfa38a530eb92dabf65a02a39d4616cc9086 (diff) | |
download | mkinitcpio-977583e34d21d59493fe71bf2f94bfe185673fa7.tar.gz mkinitcpio-977583e34d21d59493fe71bf2f94bfe185673fa7.tar.xz |
Fix broken command line parsing due to insufficient quoting introduced in 42e8dba5dce4879e4a372c5c2fb5446b4e8bb16c.
Diffstat (limited to 'init')
-rw-r--r-- | init | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -51,7 +51,7 @@ for cmd in ${CMDLINE}; do # only export stuff that does work with ash :) *=*) rhs="$(echo "${cmd}" | cut -d= -f2-)" cmd="$(echo "${cmd}" | cut -d= -f1 | sed 's|\.|_|g')" - cmd="$(echo "${cmd}" | sed 's|-|_|g')=${rhs}" + cmd="$(echo "${cmd}" | sed 's|-|_|g')=\"${rhs}\"" (echo "${cmd}" | grep -qe '^[0-9]') || eval "${cmd}" ;; *) cmd="$(echo "${cmd}" | sed 's|\.|_|g')" |