summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-01-05 19:14:20 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-01-05 19:14:20 +0000
commita5b4c2a618672b92468d8ae25f0a584aff034e0c (patch)
treeed36a23e44d28ed3a3257800fcb1dbea098abca0 /shells
parentUpdate to 0.94. (diff)
Ignore error in updating /etc/shells so that a normal user can build
and install this port.
Notes
Notes: svn path=/head/; revision=72595
Diffstat (limited to 'shells')
-rw-r--r--shells/fd/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/shells/fd/Makefile b/shells/fd/Makefile
index c93d10c07610..9e369fb6b930 100644
--- a/shells/fd/Makefile
+++ b/shells/fd/Makefile
@@ -38,10 +38,10 @@ post-patch:
post-install:
@${ECHO} "Updating /etc/shells"
- @${CP} /etc/shells /etc/shells.bak
- @(${GREP} -v ${PREFIX}/bin/fdsh /etc/shells.bak; \
- ${ECHO_CMD} ${PREFIX}/bin/fdsh) > /etc/shells
- @${RM} /etc/shells.bak
+ @-${CP} /etc/shells /etc/shells.bak; \
+ (${GREP} -v ${PREFIX}/bin/fdsh /etc/shells.bak; \
+ ${ECHO_CMD} ${PREFIX}/bin/fdsh) > /etc/shells; \
+ ${RM} -f /etc/shells.bak
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
@${MKDIR} ${PREFIX}/share/doc/ja/${PORTNAME}