From 8beb1871ec08bcdc1578ad6190e9e645e055127a 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/standalone-tcsh/pkg/PLIST | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shells/standalone-tcsh') diff --git a/shells/standalone-tcsh/pkg/PLIST b/shells/standalone-tcsh/pkg/PLIST index 476b98fb69a..4b5d0cd4a18 100644 --- a/shells/standalone-tcsh/pkg/PLIST +++ b/shells/standalone-tcsh/pkg/PLIST @@ -1,5 +1,5 @@ -@comment $NetBSD: PLIST,v 1.2 2001/08/06 20:46:58 agc Exp $ +@comment $NetBSD: PLIST,v 1.3 2001/09/23 21:06:08 tron Exp $ bin/tcsh -@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 usr/share/man/man1/tcsh.1 -- cgit v1.2.3