diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-10-02 18:45:09 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-10-02 18:45:09 +0000 |
commit | f8f55c2a3fe980a887bea1cb7d4ecca013be014d (patch) | |
tree | 5319a5998874b19cd03d7932f5d79a380872a9f1 /distrib/miniroot/install.sub | |
parent | d9b8d65f6172290e4227d18ee8361a26198b8813 (diff) |
Minor code cleanup and shrinkage. No functional change.
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index a7e94c1f7fe..5447a55426d 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.353 2004/09/29 00:05:14 krw Exp $ +# $OpenBSD: install.sub,v 1.354 2004/10/02 18:45:08 krw Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2004 Todd Miller, Theo de Raadt, Ken Westerback @@ -1658,11 +1658,9 @@ for _set in base etc misc comp man game xbase xetc xshare xfont xserv site ; do done # decide upon an editor -if [ -z "$EDITOR" ] ; then - EDITOR=ed - [ -x /usr/bin/vi ] && EDITOR=vi - export EDITOR -fi +: ${EDITOR:=ed} +[[ -x /usr/bin/vi ]] && EDITOR=vi +export EDITOR # umount all filesystems, just in case we are re-running install or upgrade. [[ -f /etc/fstab ]] && umount -av 1>/dev/null 2>&1 |