From 54453a6345519ead8edbf75475fd802a8af7a245 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 14 Mar 2023 14:43:26 +0100 Subject: [PATCH] cmd_script: custom scripts with no uri failed to send the stdout to the server Signed-off-by: John Crispin --- command/cmd_script.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/cmd_script.uc b/command/cmd_script.uc index 37cc4c1..21e6732 100644 --- a/command/cmd_script.uc +++ b/command/cmd_script.uc @@ -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) {