Commit 233d69e8 authored by Steve Goering's avatar Steve Goering

check return code of submodule

parent 9cc5237b
......@@ -80,10 +80,15 @@ def handle_script(submodul, scriptfile, params=[]):
lInfo("output: \n" + output)"""
lInfo("output:")
os.system(" ".join([scriptfile] + params))
lInfo("done")
# todo "return code"
return 0
cmd = " ".join([scriptfile] + params)
return_value = os.system(cmd)
if return_value == 0:
lInfo("done")
else:
lError("something was wrong with your call: " + cmd)
return return_value
def main(args):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment