Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As previously talked with @andrewlock, I've modified the sdk_latest code to do:
2.1 If the latest installed is selected => create a global.json in the current folder with it
2.2 If the global version is selected => Do nothing / delete current global.json
I also modified the *nix script to work the same way. I've not written a bash script in almost 10 years and, although it worked on a Mac laptop I could grab, I'm not sure whether it's entirely correct or not. If someone could just take a look to make sure everything is correct, that would be great