Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to latest version #8

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Switch to latest version #8

wants to merge 8 commits into from

Conversation

Sekku
Copy link
Contributor

@Sekku Sekku commented Jul 30, 2017

As previously talked with @andrewlock, I've modified the sdk_latest code to do:

  1. Check if there's a global.json in a parent folder
  2. If there's one, ask whether the user wants to switch to the latest sdk installed or to version in the global.json
    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
  3. If there isn't any file, then just 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

Sekku added 8 commits July 15, 2017 18:20
…in any of the parent directories and compares the version in it with that of the latest installed on the system. If they differ, prompt the user to choose between them
*nix version: Same functionality as the win version when switching to the latest version. Checks for global.json in the parent folder and makes sure that the user can switch effectively to the latest version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant