Skip to content

Commit e067f32

Browse files
committed
Remove needless escape
1 parent 98c0ece commit e067f32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,12 @@ info "host platform: ${host_arch}_${host_os}"
525525
home="${HOME}"
526526
if [[ "${host_os}" == "windows" ]]; then
527527
if [[ "${home}" == "/home/"* ]]; then
528-
if [[ -d "${home/\/home\//\/c\/Users\/}" ]]; then
528+
if [[ -d "${home/\/home\///c/Users/}" ]]; then
529529
# MSYS2 https://github.com/taiki-e/install-action/pull/518#issuecomment-2160736760
530-
home="${home/\/home\//\/c\/Users\/}"
531-
elif [[ -d "${home/\/home\//\/cygdrive\/c\/Users\/}" ]]; then
530+
home="${home/\/home\///c/Users/}"
531+
elif [[ -d "${home/\/home\///cygdrive/c/Users/}" ]]; then
532532
# Cygwin https://github.com/taiki-e/install-action/issues/224#issuecomment-1720196288
533-
home="${home/\/home\//\/cygdrive\/c\/Users\/}"
533+
home="${home/\/home\///cygdrive/c/Users/}"
534534
else
535535
warn "\$HOME starting /home/ (${home}) on Windows bash is usually fake path, this may cause installation issue"
536536
fi

0 commit comments

Comments
 (0)