From 40bf1c3666931cbfa063e8f542f877df7db814f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Thu, 26 May 2016 17:00:42 +0300 Subject: [PATCH] minor fix for execution result --- opt/ahenk/base/util/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index ad63de2..850b1bc 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -116,7 +116,8 @@ class Util: @staticmethod def execute(command): - return subprocess.Popen(command, shell=True) + p = subprocess.Popen(command, shell=True) + return p.wait() @staticmethod def execute_script(script_path, parameters=None): @@ -172,4 +173,4 @@ class Util: gid = st.st_uid return grp.getgrgid(gid)[0] except: - raise + raise \ No newline at end of file