purplesyringa / win-sudo

Add `sudo` command to Git Bash
MIT License
183 stars 55 forks source link

Small fix if called from an already elevated prompt #50

Closed riedel closed 1 year ago

riedel commented 1 year ago

command_to_run escaping seems not to be suitable to be passed to exec. Found when testing the other PR. I guess rarely someone calls sudo from an already elevated prompt...

purplesyringa commented 1 year ago

Yay, thanks!