Skip to content

Commit

Permalink
Merge pull request #4 from karthicraghupathi/master
Browse files Browse the repository at this point in the history
Return Exit Code From Executed Command
  • Loading branch information
clarketm authored Jul 21, 2020
2 parents e26114b + d6265c9 commit 4b464f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wait_for_it/wait_for_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def cli(service, quiet, timeout, commands):
connect(s, timeout)

if len(commands):
subprocess.run(commands)
result = subprocess.run(commands)
sys.exit(result.returncode)


def connect(service, timeout):
Expand Down

0 comments on commit 4b464f7

Please sign in to comment.