Skip to content

Do not elevate unless necessary#511

Merged
coreybutler merged 1 commit intocoreybutler:masterfrom
rbuckton:patch-1
Mar 25, 2020
Merged

Do not elevate unless necessary#511
coreybutler merged 1 commit intocoreybutler:masterfrom
rbuckton:patch-1

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 rbuckton requested a review from coreybutler February 11, 2020 19:58
@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