We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25ed328 commit 5eb8bebCopy full SHA for 5eb8beb
webhooks.py
@@ -105,16 +105,20 @@ def index():
105
ran = {}
106
for s in scripts:
107
if isfile(s) and access(s, X_OK):
108
- cmd = Popen(
109
- shsplit("{} '{}'".format(s, dumps(payload))),
+
+ cmd = "{} '{}'".format(s, dumps(payload))
110
+ logging.error(cmd)
111
112
+ proc = Popen(
113
+ shsplit(cmd),
114
shell=True,
115
stdout=PIPE, stderr=PIPE
116
)
- stdout, stderr = cmd.communicate()
117
+ stdout, stderr = proc.communicate()
118
119
if not silent:
120
ran[basename(s)] = {
- 'returncode': cmd.returncode,
121
+ 'returncode': proc.returncode,
122
'stdout': stdout,
123
'stderr': stderr,
124
}
0 commit comments