summaryrefslogtreecommitdiff
path: root/shells/zsh
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-09-23 21:06:07 +0000
committertron <tron@pkgsrc.org>2001-09-23 21:06:07 +0000
commit45df76b111cf3f75364ca968460f10a8ed6d4db7 (patch)
tree982ad90043c644e29de0b8d5e7f049966aa6aa82 /shells/zsh
parent0aa1f59f15041259691dd8dcf1c707223a33a062 (diff)
downloadpkgsrc-45df76b111cf3f75364ca968460f10a8ed6d4db7.tar.gz
Make modifications of "/etc/shells" robust so that they don't fail if the
last entry is removed.
Diffstat (limited to 'shells/zsh')
-rw-r--r--shells/zsh/pkg/PLIST4
1 files changed, 2 insertions, 2 deletions
diff --git a/shells/zsh/pkg/PLIST b/shells/zsh/pkg/PLIST
index e9c48c8a0e4..530f8a03d06 100644
--- a/shells/zsh/pkg/PLIST
+++ b/shells/zsh/pkg/PLIST
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.9 2001/07/23 18:23:45 nra Exp $
+@comment $NetBSD: PLIST,v 1.10 2001/09/23 21:06:08 tron Exp $
bin/zsh
-@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak || true; echo %D/%F) >/etc/shells
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
bin/${PKGNAME}
@unexec install-info --delete %D/info/zsh.info %D/info/dir