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:
dougb 2003-02-21 09:37:20 +00:00
parent 2d0e4a4d49
commit 35b1e16711

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