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

altered runElevated to accept command and args fixing the elevation bug #828

Closed
wants to merge 1 commit into from

Conversation

craig-et
Copy link

@craig-et craig-et commented Jul 4, 2022

Current runElevated seems to have issues elevating from non-admin terminal. This change should resolve the elevation issue and return the nicer usage, mirroring the interface for exec.Command.

This change currently does not soft escalate if command run fails in a non elevated state first, can be added if requested.

NB:
I recognise that there are a couple PR's attempting to resolve this issue already pending, they seem to have gone stale, I had tried their impl's but they did not appear to work for me during testing

feel free to reject this PR if you take one of the other in its stead

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale Stale label Aug 3, 2022
@coreybutler coreybutler removed the Stale Stale label Aug 3, 2022
@github-actions
Copy link

github-actions bot commented Sep 3, 2022

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale Stale label Sep 3, 2022
@coreybutler
Copy link
Owner

Thank you for this. I ended up using it, but I had to add it manually due to several other changes that moved code around. I added a mention/thank you in the release notes.

@coreybutler coreybutler closed this Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants