summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-01-12 21:26:45 +0100
committerThomas Bächler <thomas@archlinux.org>2010-01-12 21:26:45 +0100
commit9ca9d2fbf0af1f37678fb9835045141ac0cfc049 (patch)
tree719498533666f89f969620750f982bb66aa44c05
parentcd0973a87d41a7a90808024861aff1af4d4d3096 (diff)
downloadmkinitcpio-9ca9d2fbf0af1f37678fb9835045141ac0cfc049.tar.gz
mkinitcpio-9ca9d2fbf0af1f37678fb9835045141ac0cfc049.tar.xz
Fix a small oops in the sed usage
-rw-r--r--init4
1 files changed, 2 insertions, 2 deletions
diff --git a/init b/init
index aa46c48..94db351 100644
--- a/init
+++ b/init
@@ -32,11 +32,11 @@ for cmd in ${CMDLINE}; do
single) ;;
# 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}" | cut -d= -f1 | sed 's|\.|_|g')"
cmd="$(echo "${cmd}" | sed 's|-|_|g')=${rhs}"
(echo "${cmd}" | grep -qe '^[0-9]') || export "${cmd}"
;;
- *) cmd="$(echo "${cmd}" | sed 's|.|_|g')"
+ *) cmd="$(echo "${cmd}" | sed 's|\.|_|g')"
cmd="$(echo "${cmd}" | sed 's|-|_|g')"
(echo "${cmd}" | grep -qe '^[0-9]') || export "${cmd}=y"
;;