Skip to content

Commit

Permalink
Using readlink -f instead to fix #337 without breaking msys2
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardog committed Feb 20, 2024
1 parent 7da1395 commit cf887bf
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,5 +8,5 @@
# 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 "$@"; }

thisdir="$(dirname "$(readlink "$0")")"
thisdir="$(dirname "$(readlink -f "$0")")"
WSLENV=WSL_DISTRO_NAME:USER:$WSLENV MSYS_NO_PATHCONV=1 "${thisdir}/gsudo.exe" "$@"

0 comments on commit cf887bf

Please sign in to comment.