summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2011-04-05 18:20:16 +0200
committerThomas Bächler <thomas@archlinux.org>2011-04-05 18:20:16 +0200
commit977583e34d21d59493fe71bf2f94bfe185673fa7 (patch)
tree2f576b05d8aea025290e0438d2de224fcd258baa /init
parent5409dfa38a530eb92dabf65a02a39d4616cc9086 (diff)
downloadmkinitcpio-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--init2
1 files changed, 1 insertions, 1 deletions
diff --git a/init b/init
index 4663a4b..f242dc1 100644
--- a/init
+++ b/init
@@ -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')"