Don't try to deal with vi.recover if the directory doesn't exist

PR:		conf/24515
Submitted by:	Jeroen C. van Gelderen <jeroen@systemics.com>
This commit is contained in:
Doug Barton 2003-02-21 09:37:20 +00:00
parent ca78e3fb20
commit f2883df60d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111210

View File

@ -27,6 +27,7 @@ esac
virecover_start()
{
[ -d /var/tmp/vi.recover ] || return
find /var/tmp/vi.recover ! -type f -a ! -type d -delete
vibackup=`echo /var/tmp/vi.recover/vi.*`
if [ "${vibackup}" != '/var/tmp/vi.recover/vi.*' ]; then