mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
dev_scripts: Return exit code for failures
The env.py dev script does not return an exit code for failures, so we add the necessary 'return' statements to do so.
This commit is contained in:
parent
3684b7ff61
commit
84037d4ffb
1 changed files with 5 additions and 3 deletions
|
@ -527,19 +527,21 @@ def env_run(args):
|
|||
sys.exit(1)
|
||||
|
||||
env = Env.from_args(args)
|
||||
env.run(args.command, gui=args.gui, user=args.user, dry=args.dry, dev=args.dev)
|
||||
return env.run(
|
||||
args.command, gui=args.gui, user=args.user, dry=args.dry, dev=args.dev
|
||||
)
|
||||
|
||||
|
||||
def env_build_dev(args):
|
||||
"""Invoke the 'build-dev' command based on the CLI args."""
|
||||
env = Env.from_args(args)
|
||||
env.build_dev(show_dockerfile=args.show_dockerfile)
|
||||
return env.build_dev(show_dockerfile=args.show_dockerfile)
|
||||
|
||||
|
||||
def env_build(args):
|
||||
"""Invoke the 'build' command based on the CLI args."""
|
||||
env = Env.from_args(args)
|
||||
env.build(show_dockerfile=args.show_dockerfile)
|
||||
return env.build(show_dockerfile=args.show_dockerfile)
|
||||
|
||||
|
||||
def parse_args():
|
||||
|
|
Loading…
Reference in a new issue