diff options
author | tron <tron> | 2001-09-23 21:06:07 +0000 |
---|---|---|
committer | tron <tron> | 2001-09-23 21:06:07 +0000 |
commit | 7c0916a9fc398ff731448c5db70fd65e3402b99c (patch) | |
tree | 982ad90043c644e29de0b8d5e7f049966aa6aa82 /shells/zsh3 | |
parent | d62af28b74783148b21a8c18b182fbde0dbe3a90 (diff) | |
download | pkgsrc-7c0916a9fc398ff731448c5db70fd65e3402b99c.tar.gz |
Make modifications of "/etc/shells" robust so that they don't fail if the
last entry is removed.
Diffstat (limited to 'shells/zsh3')
-rw-r--r-- | shells/zsh3/pkg/PLIST | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shells/zsh3/pkg/PLIST b/shells/zsh3/pkg/PLIST index feb70c493ca..e4bd68c6762 100644 --- a/shells/zsh3/pkg/PLIST +++ b/shells/zsh3/pkg/PLIST @@ -1,6 +1,6 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/05 16:30:15 jtb Exp $ +@comment $NetBSD: PLIST,v 1.2 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 |