From 1545d65be77ccd9f4eec49ef657cb3abb5b08410 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Tue, 24 Jan 2017 18:19:37 -0700 Subject: [PATCH] return subprocess exit code --- pipenv/cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipenv/cli.py b/pipenv/cli.py index 6c1ad8a5..5dcf4695 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -563,6 +563,8 @@ def shell(three=None): # Interact with the new shell. c.interact() + c.close() + sys.exit(c.exitstatus) @click.command(help="Spawns a command installed into the virtualenv.", context_settings=dict( @@ -585,6 +587,8 @@ def run(command, args, three=None): # Interact with the new shell. c.interact() + c.close() + sys.exit(c.exitstatus) @click.command(help="Checks PEP 508 markers provided in Pipfile.")