jbang icon indicating copy to clipboard operation
jbang copied to clipboard

When calling setup multiple times in the same shell, multiple path entries are created

Open lukaseder opened this issue 4 years ago • 1 comments
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:

image

It can be reproduced like this:

image

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...?

lukaseder avatar Jun 12 '21 08:06 lukaseder

@quintesse any idea?

maxandersen avatar Jun 25 '21 23:06 maxandersen