Skip to content

Commit

Permalink
fix jill list display for non-windows target
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 committed Aug 28, 2021
1 parent 9739b79 commit a91b5e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jill/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def list_julia(version=None, *,

print(f"Found {len(julias)} julia(s) in {color.UNDERLINE}{symlink_dir}{color.END}:") # nopep8
for binname, (binversion, build) in zip(julias, version_list):
binname = os.path.splitext(binname)[0] # Hide .cmd ext for Windows
if binname.endswith(".cmd"):
# hide .cmd ext for Windows
binname = os.path.splitext(binname)[0]
build_msg = f"+{build}" if build else ""
binversion_msg = f"{color.RED}Invalid{color.END}" if binversion == '0.0.1' else binversion
print(f"{color.BOLD}{binname:12}{color.END}\t-->\t{binversion_msg}{build_msg}")

0 comments on commit a91b5e7

Please sign in to comment.