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

git-svn-id: https://svn.fhem.de/fhem/trunk@8554 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-05-10 07:09:22 +00:00
parent e897ad9ab0
commit 600a37b51a

View File

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