From cf887bf98d5d3d90fc1eebc08c7a277afb50cd19 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Mon, 19 Feb 2024 22:35:18 -0300 Subject: [PATCH] Using `readlink -f` instead to fix #337 without breaking msys2 --- src/gsudo.Wrappers/gsudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" "$@"