diff options
author | knu <knu@FreeBSD.org> | 2003-01-06 03:14:20 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2003-01-06 03:14:20 +0800 |
commit | 09a4a8c8465003134b1fe37b4865db37f11cab48 (patch) | |
tree | dfc2ada4e24364e042a9aed755cc5aceb125cb57 /shells/fd | |
parent | fed043106ee2ca5178d7e1771c381eca074f682f (diff) | |
download | freebsd-ports-gnome-09a4a8c8465003134b1fe37b4865db37f11cab48.tar.gz freebsd-ports-gnome-09a4a8c8465003134b1fe37b4865db37f11cab48.tar.zst freebsd-ports-gnome-09a4a8c8465003134b1fe37b4865db37f11cab48.zip |
Ignore error in updating /etc/shells so that a normal user can build
and install this port.
Diffstat (limited to 'shells/fd')
-rw-r--r-- | shells/fd/Makefile | 8 |
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} |