Fixed #162 by revising UNIX to Windows path conversion logic in 'bin/winapps'.

This commit is contained in:
Rohan Barar 2024-07-25 14:42:28 +10:00
parent 37efb85371
commit e72ef0c039

View File

@ -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}"