aboutsummaryrefslogtreecommitdiffstats
path: root/shells/bash/pkg-deinstall
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2007-06-29 07:33:44 +0800
committerobrien <obrien@FreeBSD.org>2007-06-29 07:33:44 +0800
commitb6b9c7166b0b57b1d20a5f0d476662bc6d823476 (patch)
tree93f9ce0396a43562679b04459905b3b6d5782542 /shells/bash/pkg-deinstall
parent75376d33c6a059ecbf91d5b84c93899ab17c8b20 (diff)
downloadfreebsd-ports-graphics-b6b9c7166b0b57b1d20a5f0d476662bc6d823476.tar.gz
freebsd-ports-graphics-b6b9c7166b0b57b1d20a5f0d476662bc6d823476.tar.zst
freebsd-ports-graphics-b6b9c7166b0b57b1d20a5f0d476662bc6d823476.zip
Support PREFIX=/
PR: 95566 Submitted by: Andrew McNaughton <andrew@scoop.co.nz>
Diffstat (limited to 'shells/bash/pkg-deinstall')
-rw-r--r--shells/bash/pkg-deinstall4
1 files changed, 2 insertions, 2 deletions
diff --git a/shells/bash/pkg-deinstall b/shells/bash/pkg-deinstall
index 6f49f2c3ca3..3e19db4b163 100644
--- a/shells/bash/pkg-deinstall
+++ b/shells/bash/pkg-deinstall
@@ -12,7 +12,7 @@ DEINSTALL)
if grep -qs "^$BASH\$" "$SHELLS"; then
if [ `id -u` -eq 0 ]; then
TMPSHELLS=`mktemp -t shells`
- grep -v "^$BASH\$" "$SHELLS" > "$TMPSHELLS"
+ grep -v "^$(echo "$BASH" | /usr/bin/sed -e 's|//|/|g')\$" "$SHELLS" > "$TMPSHELLS"
cat "$TMPSHELLS" > "$SHELLS"
rm "$TMPSHELLS"
else
@@ -22,7 +22,7 @@ DEINSTALL)
if grep -qs "^$RBASH\$" "$SHELLS"; then
if [ `id -u` -eq 0 ]; then
TMPSHELLS=`mktemp -t shells`
- grep -v "^$RBASH\$" "$SHELLS" > "$TMPSHELLS"
+ grep -v "^$(echo "$RBASH" | /usr/bin/sed -e 's|//|/|g')\$" "$SHELLS" > "$TMPSHELLS"
cat "$TMPSHELLS" > "$SHELLS"
rm "$TMPSHELLS"
else