Skip to content

Commit

Permalink
fix: Fix TacticalRMM Remote_Mgmt agent version discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Jul 9, 2024
1 parent e2207b7 commit 661f114
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ sub _getVersion {
:
canRun("rmmagent") ? "rmmagent --version" : "/usr/local/bin/rmmagent --version";

return getFirstMatch(
# On windows, the command seems to output a BOM on the first line
my $line = getSanitizedString(getFirstLine(
command => $command,
pattern => qr/^Tactical RMM Agent:\s+(\S+)/i,
%params
);
));

return $line =~ /Tactical RMM Agent:\s+([0-9.]+)/i;
}

1;

0 comments on commit 661f114

Please sign in to comment.