74_XiaomiBTLESens: fix ssh gatttool which test

git-svn-id: https://svn.fhem.de/fhem/trunk@15916 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
CoolTux
2018-01-17 19:23:02 +00:00
parent 20fd978e3a
commit 187eeb16a5
2 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 74_XiaomiBTLESens: fix ssh gatttool which test
- new: 74_XiaomiBTLESens: modul replace 74_XiaomiFlowerSens, add Support
for Xiamomi Themometer/Hygrometer mit Display
- bugfix: 42_SYSMON: Falsche Angabe von Ram free / used bei Debian Stretch
- bugfix: 70_BRAVIA: fixed hash for space
(application, channel, input names)

View File

@@ -47,7 +47,7 @@ use JSON;
use Blocking;
my $version = "2.0.0";
my $version = "2.0.1";
@@ -442,9 +442,8 @@ sub XiaomiBTLESens_ExecGatttool_Run($) {
$gatttool = qx(which gatttool) if($sshHost eq 'none');
$gatttool = qx(ssh $sshHost 'which gatttool') if($sshHost ne 'none');
chomp $gatttool;
$gatttool = "ssh $sshHost \'$gatttool\'" if($sshHost ne 'none');
if(-x $gatttool) {
if(defined($gatttool) and ($gatttool)) {
my $cmd;
my $loop;