jbang
jbang copied to clipboard
When calling setup multiple times in the same shell, multiple path entries are created
trafficstars
I made a mistake when setting up jshell, not closing and re-opening the entire Windows Terminal window. I just closed tabs, instead: https://github.com/jbangdev/jbang/issues/939
This resulted in multiple identical path entries in my environment variables:

It can be reproduced like this:

I.e. on a fresh environment (removing all the path entries, and removing rm -Rf ~/.jbang), run this command several times:
curl -Ls https://sh.jbang.dev | bash -s - app setup
I wonder if a previous setup could be detected even if the terminal window hasn't been closed and re-opened yet...?
@quintesse any idea?