diff options
author | Thomas Bächler <thomas@archlinux.org> | 2010-01-12 21:26:45 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-01-12 21:26:45 +0100 |
commit | 9ca9d2fbf0af1f37678fb9835045141ac0cfc049 (patch) | |
tree | 719498533666f89f969620750f982bb66aa44c05 /init | |
parent | cd0973a87d41a7a90808024861aff1af4d4d3096 (diff) | |
download | mkinitcpio-9ca9d2fbf0af1f37678fb9835045141ac0cfc049.tar.gz mkinitcpio-9ca9d2fbf0af1f37678fb9835045141ac0cfc049.tar.xz |
Fix a small oops in the sed usage
Diffstat (limited to 'init')
-rw-r--r-- | init | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" ;; |