98_update.pm: use correct fhem.pl for size check (Forum #37044)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8554 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-05-10 07:09:22 +00:00
parent 3aef3c5759
commit 1f9c8f662b

View File

@@ -199,7 +199,9 @@ doUpdate($$)
next if($fName !~ m/$arg/); next if($fName !~ m/$arg/);
} else { } else {
my $sz = -s "$root/$fName"; my $fPath = "$root/$fName";
$fPath = $0 if($fPath =~ m/$mainPgm/);
my $sz = -s $fPath;
next if($lh{$fName} && next if($lh{$fName} &&
$lh{$fName}{TS} eq $r[1] && $lh{$fName}{TS} eq $r[1] &&
$sz && $sz eq $r[2] && $sz && $sz eq $r[2] &&