2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

fhem.pl: fix setting attr global commandref (Forum #39854)

git-svn-id: https://svn.fhem.de/fhem/trunk@12006 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-08-20 09:41:27 +00:00
parent 009f605cc5
commit 55d61bed27

View File

@ -2455,10 +2455,12 @@ GlobalAttr($$$$)
}
elsif($name eq "commandref" && $init_done) {
my $root = $attr{global}{modpath};
my $out = "";
$out = ">> $currlogfile 2>&1" if($currlogfile ne "-" && $^O ne "MSWin32");
if($val eq "full") {
return `$^X $root/contrib/commandref_join.pl -noWarnings`;
system("$^X $root/contrib/commandref_join.pl -noWarnings $out")
} else {
return `$^X $root/contrib/commandref_modular.pl`;
system("$^X $root/contrib/commandref_modular.pl $out");
}
}