diff --git a/bin/cfg b/bin/cfg index 0ec463c..d4ffaab 100755 --- a/bin/cfg +++ b/bin/cfg @@ -219,7 +219,8 @@ if ($result instanceof Settings) $result = $result->toArray(); switch ($argv->find('action')) { case 'show': - echo json_encode($result, JSON_PRETTY_PRINT).PHP_EOL; + $out = (is_string($result)) ? $result : json_encode($result, JSON_PRETTY_PRINT); + echo $out.PHP_EOL; break; case 'write':