2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-26 16:19:32 +00:00

99_Utils.pm: fix misuse of Svn_GetFile (Format #113294)

git-svn-id: https://svn.fhem.de/fhem/trunk@22524 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-08-02 14:34:02 +00:00
parent 12b9f7d990
commit 4accf49203

View File

@ -282,8 +282,10 @@ Svn_GetFile($$;$)
print FH $_[2];
close(FH);
Log 1, "SVN download of $from to $to finished";
&$finishFn if($finishFn);
Log 1, $@ if($@);
if($finishFn) {
eval { &$finishFn; };
Log 1, $@ if($@);
}
}});
return "Download started, check the FHEM-log";
}