From e72ef0c0393bf9e5a059fa4bcb997a5b3d6a7d89 Mon Sep 17 00:00:00 2001 From: Rohan Barar Date: Thu, 25 Jul 2024 14:42:28 +1000 Subject: [PATCH] Fixed #162 by revising UNIX to Windows path conversion logic in 'bin/winapps'. --- bin/winapps | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/winapps b/bin/winapps index 07cff0d..2486ae7 100755 --- a/bin/winapps +++ b/bin/winapps @@ -370,7 +370,9 @@ function waRunCommand() { /v:"$RDP_IP" &>/dev/null & else # Convert path from UNIX to Windows style. - FILE_PATH=$(echo "$2" | sed 's|'"${HOME}"'|\\\\tsclient\\home|;s|/|\\|g;s|\\|\\\\|g') + FILE_PATH=$(echo "$2" | sed \ + -e 's|'"${HOME}"'|\\\\tsclient\\home|' \ + -e 's|/|\\|g') dprint "UNIX_FILE_PATH: ${2}" dprint "WINDOWS_FILE_PATH: ${FILE_PATH}"