KNOXDEV / scoop-backup

Backup your entire current scoop installation with one command
The Unlicense
60 stars 6 forks source link

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

Closed nicerloop closed 2 years ago

nicerloop commented 2 years ago

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

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

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

KNOXDEV commented 2 years ago

Works for me, thanks a bunch.