cmd_script: custom scripts with no uri failed to send the stdout to the server

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-03-14 14:43:26 +01:00
parent 5e08879e46
commit 54453a6345

View File

@@ -82,7 +82,7 @@ if (abort)
"result": "timed out"
};
if (!fs.stat(out)) {
if (args.uri && !fs.stat(out)) {
result_json({ error: 1,
result: 'script did not generate any output'});
} else if (args.uri) {