mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 13:32:22 +03:00
minor fix for execution result
This commit is contained in:
parent
c0f1772eb6
commit
40bf1c3666
1 changed files with 3 additions and 2 deletions
|
@ -116,7 +116,8 @@ class Util:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def execute(command):
|
def execute(command):
|
||||||
return subprocess.Popen(command, shell=True)
|
p = subprocess.Popen(command, shell=True)
|
||||||
|
return p.wait()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def execute_script(script_path, parameters=None):
|
def execute_script(script_path, parameters=None):
|
||||||
|
@ -172,4 +173,4 @@ class Util:
|
||||||
gid = st.st_uid
|
gid = st.st_uid
|
||||||
return grp.getgrgid(gid)[0]
|
return grp.getgrgid(gid)[0]
|
||||||
except:
|
except:
|
||||||
raise
|
raise
|
Loading…
Reference in a new issue