Skip to content

Commit

Permalink
Merge pull request #259 from gerardog/Fix.WslPath
Browse files Browse the repository at this point in the history
Fixed wsl error `line 11: /mnt/c/Program: No such file or directory`
  • Loading branch information
gerardog authored Apr 30, 2023
2 parents 0cdab2c + 07458eb commit e011513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gsudo.Wrappers/gsudo
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
# For better experience (fix credentials cache) in git-bash/MinGw create this wrapper can be added as function in .bashrc:
# gsudo() { WSLENV=WSL_DISTRO_NAME:USER:$WSLENV MSYS_NO_PATHCONV=1 gsudo.exe "$@"; }

WSLENV=WSL_DISTRO_NAME:USER:$WSLENV MSYS_NO_PATHCONV=1 $( dirname -- "$0")/gsudo.exe "$@"
WSLENV=WSL_DISTRO_NAME:USER:$WSLENV MSYS_NO_PATHCONV=1 "$( dirname -- "$0")/gsudo.exe" "$@"

0 comments on commit e011513

Please sign in to comment.