From 34b415152988b80055773812d4106212a046a5a3 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Mon, 25 May 2015 12:18:03 +0200 Subject: [PATCH] Return process exit code for 'raw' output type. --- src/scriptform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scriptform.py b/src/scriptform.py index 8b561f9..b5e32d9 100755 --- a/src/scriptform.py +++ b/src/scriptform.py @@ -357,7 +357,7 @@ class FormConfig: stderr=stderr, env=env) stdout, stderr = p.communicate(input) - return None + return p.returncode else: p = subprocess.Popen(form.script, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,