From c9e78e2cd149f33fd23c8c2a1718b75be1a3f71d Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 22 Mar 2023 21:41:32 +0100 Subject: [PATCH] plugins: trailing whitespace --- src/sbin/pluginctl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sbin/pluginctl b/src/sbin/pluginctl index ff5e2e8f5..afa7e674c 100755 --- a/src/sbin/pluginctl +++ b/src/sbin/pluginctl @@ -145,8 +145,7 @@ if (isset($opts['h'])) { $cmd = array_shift($args); $result = plugins_run($cmd, $args); if (!empty($result)) { - $response = json_encode($result, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT); - echo $response; + echo json_encode($result, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT) . PHP_EOL; } } elseif (isset($opts['g'])) { echo get_config_prop($args[0]) . PHP_EOL;