Skip to content

Commit

Permalink
Exit with error code if installation fails
Browse files Browse the repository at this point in the history
Closes #153
  • Loading branch information
elopez committed Jan 2, 2025
1 parent ba3c63a commit 4f00178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solc_select/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def solc_select() -> None:
for version in get_installable_versions():
print(version)
else:
install_artifacts(args.get(INSTALL_VERSIONS))
status = install_artifacts(args.get(INSTALL_VERSIONS))
sys.exit(0 if status else 1)

elif args.get(USE_VERSION) is not None:
switch_global_version(args.get(USE_VERSION), args.get("always_install"), silent=False)
Expand Down

0 comments on commit 4f00178

Please sign in to comment.