From 45df76b111cf3f75364ca968460f10a8ed6d4db7 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 23 Sep 2001 21:06:07 +0000 Subject: Make modifications of "/etc/shells" robust so that they don't fail if the last entry is removed. --- shells/zsh3/pkg/PLIST | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shells/zsh3') 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 -- cgit v1.2.3