aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2006-06-11 16:56:14 +0800
committerale <ale@FreeBSD.org>2006-06-11 16:56:14 +0800
commite3cbbc0d487e1533238a564feda61e5e4db0f40e (patch)
tree9aa0be4ab3f1e822364909d84fc74e75f92ccaab
parentf07bcc737dfbd06956451c526cb87b5c9efb6b1b (diff)
downloadfreebsd-ports-gnome-e3cbbc0d487e1533238a564feda61e5e4db0f40e.tar.gz
freebsd-ports-gnome-e3cbbc0d487e1533238a564feda61e5e4db0f40e.tar.zst
freebsd-ports-gnome-e3cbbc0d487e1533238a564feda61e5e4db0f40e.zip
Correct sed syntax.
-rw-r--r--ports-mgmt/portconf/pkg-deinstall4
-rw-r--r--sysutils/portconf/pkg-deinstall4
2 files changed, 4 insertions, 4 deletions
diff --git a/ports-mgmt/portconf/pkg-deinstall b/ports-mgmt/portconf/pkg-deinstall
index 5646b09dab71..1f90cf2c820a 100644
--- a/ports-mgmt/portconf/pkg-deinstall
+++ b/ports-mgmt/portconf/pkg-deinstall
@@ -5,8 +5,8 @@ MAKE_CONF=/etc/make.conf
if [ "$2" = "POST-DEINSTALL" ]; then
echo -n "Cleaning up ${MAKE_CONF}..."
if [ -f ${MAKE_CONF} ]; then
- sed -i"" -e "/# Begin portconf settings/,/# End portconf settings/d" \
- ${MAKE_CONF}
+ sed -e "/# Begin portconf settings/,/# End portconf settings/d" \
+ -i "" ${MAKE_CONF}
if [ ! -s ${MAKE_CONF} ]; then
rm ${MAKE_CONF}
fi
diff --git a/sysutils/portconf/pkg-deinstall b/sysutils/portconf/pkg-deinstall
index 5646b09dab71..1f90cf2c820a 100644
--- a/sysutils/portconf/pkg-deinstall
+++ b/sysutils/portconf/pkg-deinstall
@@ -5,8 +5,8 @@ MAKE_CONF=/etc/make.conf
if [ "$2" = "POST-DEINSTALL" ]; then
echo -n "Cleaning up ${MAKE_CONF}..."
if [ -f ${MAKE_CONF} ]; then
- sed -i"" -e "/# Begin portconf settings/,/# End portconf settings/d" \
- ${MAKE_CONF}
+ sed -e "/# Begin portconf settings/,/# End portconf settings/d" \
+ -i "" ${MAKE_CONF}
if [ ! -s ${MAKE_CONF} ]; then
rm ${MAKE_CONF}
fi