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

use gsudo as sudo.ps1 does not support code blocks #14

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

nicerloop
Copy link
Contributor

@nicerloop nicerloop commented Feb 13, 2022

sudo.ps1 does have limitations regarding the passed command; it escaping function mangles {}, $ and some other characters
lukesampson/psutils#42
lukesampson/psutils#25

see https://github.com/lukesampson/psutils/blob/8af01127a949c64ea50b657989a4cd7744d4fffd/sudo.ps1#L40

using main/gsudo (https://github.com/gerardog/gsudo) works better

@KNOXDEV KNOXDEV merged commit bac11b9 into KNOXDEV:master Feb 16, 2022
@KNOXDEV
Copy link
Owner

KNOXDEV commented Feb 16, 2022

Works for me, thanks a bunch.

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.

2 participants