From e067f32759db72b482cbc040d08da8d81d95fc54 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 9 Feb 2025 02:54:13 +0900 Subject: [PATCH] Remove needless escape --- main.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.sh b/main.sh index f56e1849..da2a7596 100755 --- a/main.sh +++ b/main.sh @@ -525,12 +525,12 @@ info "host platform: ${host_arch}_${host_os}" home="${HOME}" if [[ "${host_os}" == "windows" ]]; then if [[ "${home}" == "/home/"* ]]; then - if [[ -d "${home/\/home\//\/c\/Users\/}" ]]; then + if [[ -d "${home/\/home\///c/Users/}" ]]; then # MSYS2 https://github.com/taiki-e/install-action/pull/518#issuecomment-2160736760 - home="${home/\/home\//\/c\/Users\/}" - elif [[ -d "${home/\/home\//\/cygdrive\/c\/Users\/}" ]]; then + home="${home/\/home\///c/Users/}" + elif [[ -d "${home/\/home\///cygdrive/c/Users/}" ]]; then # Cygwin https://github.com/taiki-e/install-action/issues/224#issuecomment-1720196288 - home="${home/\/home\//\/cygdrive\/c\/Users\/}" + home="${home/\/home\///cygdrive/c/Users/}" else warn "\$HOME starting /home/ (${home}) on Windows bash is usually fake path, this may cause installation issue" fi