Fix variable name to snake_case style.

This commit is contained in:
Andreas Bachlechner 2021-09-27 17:34:36 +02:00
parent b8f9d73a94
commit 247693f24b
1 changed files with 3 additions and 3 deletions

View File

@ -145,12 +145,12 @@ sub ambsens_update {
my $e2 = 1;
foreach my $dl (split(',', $ambsens->{desc}->{$e})) {
my $str = trim($dl);
my $scriptWithArguments = trim($ambsens->{cmd}->{$str});
my $script = (split(' ', $scriptWithArguments))[0];
my $script_with_arguments = trim($ambsens->{cmd}->{$str});
my $script = (split(' ', $script_with_arguments))[0];
if($script) {
if(-x $script) {
my $val = `$scriptWithArguments`;
my $val = `$script_with_arguments`;
chomp($val);
$sens[$e][$e2] = $val;