aboutsummaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authorskreuzer <skreuzer@FreeBSD.org>2012-05-22 22:13:56 +0800
committerskreuzer <skreuzer@FreeBSD.org>2012-05-22 22:13:56 +0800
commit49876dd6add20e2a1d4fe716ef1db7eaf5a06039 (patch)
treeb7aedb373d8d7f24a6fac32ac4bd05543fcb9ecf /shells
parenta97726eff19a77bbcf41126a4dbe78bf500911f1 (diff)
downloadfreebsd-ports-gnome-49876dd6add20e2a1d4fe716ef1db7eaf5a06039.tar.gz
freebsd-ports-gnome-49876dd6add20e2a1d4fe716ef1db7eaf5a06039.tar.zst
freebsd-ports-gnome-49876dd6add20e2a1d4fe716ef1db7eaf5a06039.zip
Prevent post-install from removing ksh93 from /etc/shells
PR: ports/168140 Submitted by: Rob Windsor <windsor@warthog.com>
Diffstat (limited to 'shells')
-rw-r--r--shells/pdksh/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/shells/pdksh/Makefile b/shells/pdksh/Makefile
index 24f2e5ab2b13..ad8dea47737a 100644
--- a/shells/pdksh/Makefile
+++ b/shells/pdksh/Makefile
@@ -37,7 +37,7 @@ post-patch:
post-install:
@${ECHO} "Updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
- @(${GREP} -v ${PREFIX}/bin/ksh /etc/shells.bak; \
+ @(${GREP} -v "${PREFIX}/bin/ksh$$" /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/ksh) > /etc/shells
@${RM} /etc/shells.bak