mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 19:36:02 +00:00
98_SVG.pm: copyGnuplotFile filters "set readonly" (Forum #126561)
git-svn-id: https://svn.fhem.de/fhem/trunk@25779 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c5d6abbfc8
commit
e03f411f50
@ -144,6 +144,7 @@ SVG_Set($@)
|
|||||||
|
|
||||||
my ($err,@rows) = FileRead($srcName);
|
my ($err,@rows) = FileRead($srcName);
|
||||||
return $err if($err);
|
return $err if($err);
|
||||||
|
@rows = grep { $_ !~ m/^set readonly/ } @rows;
|
||||||
$err = FileWrite($dstName, @rows);
|
$err = FileWrite($dstName, @rows);
|
||||||
|
|
||||||
if($err) {
|
if($err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user