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

Do not elevate unless necessary #511

Merged
merged 1 commit into from
Mar 25, 2020
Merged

Conversation

rbuckton
Copy link
Contributor

This changes elevate.cmd to first try to execute the requested command without elevation. If the command failed (i.e., ERRORLEVEL was non-zero), then retry the command with elevation.

Fixes #510

This changes `elevate.cmd` to first try to execute the requested command *without* elevation. If the command failed (i.e., `ERRORLEVEL` was non-zero), then retry the command with elevation.

Fixes coreybutler#510
@rbuckton
Copy link
Contributor Author

I've tested that this works on Windows 10.0.18363 with Developer Mode enabled and %NVM_SYMLINK% set to %APPDATA%\nodejs.

Copy link
Owner

@coreybutler coreybutler left a comment

Choose a reason for hiding this comment

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

This seems like a good addition to me. Thank you!

@coreybutler coreybutler merged commit fa9b90a into coreybutler:master Mar 25, 2020
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.

Suggestion: Do not elevate unless necessary
3 participants