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

Issue with "dotnet sdk releases" (cmd version) #12

Open
ArturKarbone opened this issue Aug 1, 2017 · 1 comment · May be fixed by #16
Open

Issue with "dotnet sdk releases" (cmd version) #12

ArturKarbone opened this issue Aug 1, 2017 · 1 comment · May be fixed by #16

Comments

@ArturKarbone
Copy link
Contributor

When I run dotnet sdk releases from an arbitrary directory I keep getting: The system cannot find the path specified.

I do think that the issue is related to the fact that "tools" folder is being referenced via relative .\tools and the command works fine only when it is called from the root of the scripts.

The solution here would be to take script path into account. Something like this:

SET script_path=%~dp0 
SET tools_path=%script_path%tools
...
 %tools_path%\curl %dotnet_releases_url% -H "Accept: application/json" -s |  %tools_path%\jq "map({date: .date,sdk: .\"version-sdk\"}) | unique_by(.sdk) | .[] | \"\(.date)\t\(.sdk)\" " -r

Will provide a PR shortly

@shanselman
Copy link
Collaborator

shanselman commented Aug 3, 2017

LOL I literally came here to do a PR with %dp0 for this. ;) @faniereynders

This same change that showed up the most recent commit also needs to take into consideration issue #15

@faniereynders faniereynders linked a pull request Aug 3, 2017 that will close this issue
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 a pull request may close this issue.

2 participants