Skip to content

Commit

Permalink
keep return code from scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kiorky committed Feb 13, 2013
1 parent 9e583b2 commit 4a48363
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ CHANGELOG

1.56 (unreleased)
-----------------

- Nothing changed yet.
- Keep return code from scripts


1.55 (2011-03-11)
Expand Down
7 changes: 6 additions & 1 deletion src/minitage/recipe/scripts/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,12 @@ def get_script_vars(self, base_vars, script_name):
import %(module_name)s
if __name__ == '__main__':
%(module_name)s.%(attrs)s(%(arguments)s)
ret = %(module_name)s.%(attrs)s(%(arguments)s)
try:
sys.exit(ret)
except:
pass
"""


Expand Down

0 comments on commit 4a48363

Please sign in to comment.