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 f189e4ef8f
commit 93039b9339

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");
}
}