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
ca78e3fb20
commit
f2883df60d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111210
@ -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