Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Fix kpm commands install folder #1269

Merged
merged 1 commit into from
Feb 25, 2015
Merged

Fix kpm commands install folder #1269

merged 1 commit into from
Feb 25, 2015

Conversation

victorhurdugaci
Copy link
Contributor

Fixes #1268

@troydai @ChengTian can you please review

@tugberkugurlu here is the fix if you want to try it :)

@ghost ghost added the cla-not-required label Feb 24, 2015
@davidfowl
Copy link
Member

What does this do?

@victorhurdugaci
Copy link
Contributor Author

The bug: kpm commands install installs in %userprofile%\bin rather than %userprofile%\.k\bin.
This change: fixes that and installs in the right folder

@@ -140,7 +140,16 @@ public static AppCommandsFolderRepository CreateDefault()
{
userProfileFolder = Environment.GetEnvironmentVariable("HOME");
}
var binFolder = Path.Combine(userProfileFolder, "bin");

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add TODO comments?

// TODO: use Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) when it's available on CoreCLR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ChengTian
Copy link
Contributor

:shipit:

@victorhurdugaci victorhurdugaci merged commit b655ba1 into dev Feb 25, 2015
@victorhurdugaci victorhurdugaci deleted the commandscorrectfolder branch February 25, 2015 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kpm commands install is installing in the wrong folder
3 participants