diff --git a/src/gsudo.Wrappers/gsudo b/src/gsudo.Wrappers/gsudo index 3aa7bf44..d458675b 100644 --- a/src/gsudo.Wrappers/gsudo +++ b/src/gsudo.Wrappers/gsudo @@ -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" "$@"