Move Popen call to a single line

This commit is contained in:
Jack Wilsdon 2015-09-12 02:14:33 +01:00
parent ae2ff6185f
commit 0dff24eb96

View file

@ -49,10 +49,7 @@ def create_hook_function(log, event, command, shell, substitute_args):
log.debug('Running command {0} for event {1}', hook_command, event)
process = subprocess.Popen(hook_command,
shell=shell)
process.wait()
subprocess.Popen(hook_command, shell=shell).wait()
return hook_function