diff options
-rw-r--r-- | main.py | 2 | ||||
-rwxr-xr-x | sugar-jhbuild | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -96,7 +96,7 @@ def main(args): args.append('sugar-emulator') try: - jhbuild.commands.run(command, config, args) + return jhbuild.commands.run(command, config, args) except UsageError, exc: sys.stderr.write('sugar-jhbuild %s: %s\n' % (command, str(exc))) parser.print_usage() diff --git a/sugar-jhbuild b/sugar-jhbuild index 5cd450c..0f1154c 100755 --- a/sugar-jhbuild +++ b/sugar-jhbuild @@ -16,4 +16,4 @@ if len(sys.argv) == 1 or (len(sys.argv) > 1 and sys.argv[1] == 'build'): import main -main.main(sys.argv[1:]) +sys.exit(main.main(sys.argv[1:])) |