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:
parent
2d0e4a4d49
commit
35b1e16711
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user