Correct sed syntax.

This commit is contained in:
Alex Dupre 2006-06-11 08:56:14 +00:00
parent 3a2793f906
commit 8c5e52b098
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165077
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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