From b85f7bf8d99f204c00536cd0033cc071150eed70 Mon Sep 17 00:00:00 2001 From: Michael Hartmann <94720889+cchartmann@users.noreply.github.com> Date: Sat, 6 May 2023 19:35:04 +0200 Subject: [PATCH] fixes #156 fixes #156 Signed-off-by: Michael Hartmann <94720889+cchartmann@users.noreply.github.com> --- lib/Operation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Operation.php b/lib/Operation.php index 8cafad7..f4bad39 100644 --- a/lib/Operation.php +++ b/lib/Operation.php @@ -216,7 +216,7 @@ protected function buildCommand(string $template, Node $node, string $event, arr $nodeID = $node->getId(); } catch (InvalidPathException | NotFoundException $e) { } - $command = str_replace('%s', escapeshellarg((string)$nodeID), $command); + $command = str_replace('%i', escapeshellarg((string)$nodeID), $command); } if (strpos($command, '%a')) {