fix ssh error

This commit is contained in:
Marko Oldenburg 2018-01-17 16:39:47 +01:00
parent 9f4e5f8630
commit 1d3e1387ec

View File

@ -442,7 +442,7 @@ sub XiaomiBTLESens_ExecGatttool_Run($) {
$gatttool = qx(which gatttool) if($sshHost eq 'none'); $gatttool = qx(which gatttool) if($sshHost eq 'none');
$gatttool = qx(ssh $sshHost 'which gatttool') if($sshHost ne 'none'); $gatttool = qx(ssh $sshHost 'which gatttool') if($sshHost ne 'none');
chomp $gatttool; chomp $gatttool;
$gatttool = "ssh $sshHost \'$gatttool\'" if($sshHost ne 'none'); Log3 $name, 3, "XiaomiBTLESens ($name) - Gatttool ist: $gatttool";
if(-x $gatttool) { if(-x $gatttool) {