Correct sed syntax.
This commit is contained in:
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
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue