fix: improve correctness of exits (#539)
* fix: improve correctness of exits * refactor: use sys.exit
This commit is contained in:
@@ -98,7 +98,7 @@ def run_example_ci_configs(config_files=None):
|
||||
|
||||
if git_repo_has_changes():
|
||||
print('Your git repo has uncommitted changes. Commit or stash before continuing.')
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
|
||||
previous_branch = shell('git rev-parse --abbrev-ref HEAD',
|
||||
check=True,
|
||||
|
||||
Reference in New Issue
Block a user