summaryrefslogtreecommitdiff
path: root/bin/dosed
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-20 07:39:49 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-20 07:39:49 +0000
commit43a4660919b8f9438b9e6753bfefa6fcad693ba3 (patch)
tree68738f9342d33b811731af088b037c55b4956df9 /bin/dosed
parentMake dosed use sed -i instead of a temp file. Thanks to Tim Cera for this pa... (diff)
downloadportage-multirepo-43a4660919b8f9438b9e6753bfefa6fcad693ba3.tar.gz
portage-multirepo-43a4660919b8f9438b9e6753bfefa6fcad693ba3.tar.bz2
portage-multirepo-43a4660919b8f9438b9e6753bfefa6fcad693ba3.zip
Fix sed options from the previous commit so that it doesn't create a backup file ending with "e". Thanks to grobian for spotting this issue.
svn path=/main/trunk/; revision=4763
Diffstat (limited to 'bin/dosed')
-rwxr-xr-xbin/dosed2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dosed b/bin/dosed
index e14194b2..5ae09b7e 100755
--- a/bin/dosed
+++ b/bin/dosed
@@ -9,7 +9,7 @@ for x in "$@" ; do
y="${D}${x}"
if [ -e "${y}" ] ; then
if [ -f "${y}" ] ; then
- sed -ie "${mysed}" "${y}"
+ sed -i -e "${mysed}" "${y}"
else
echo "${y} is not a regular file!"
exit 1