Remove Windows line endings from CMD.exe calls

This commit is contained in:
Davide Depau 2019-09-08 13:52:21 +02:00
parent 6f397398c2
commit 25e30752b4
Signed by: depau
GPG key ID: C7D999B6A55EFE86

2
shcrt
View file

@ -22,7 +22,7 @@ function is_wsl {
}
function wsl_win_var {
/mnt/c/Windows/System32/cmd.exe /C "echo $1"
/mnt/c/Windows/System32/cmd.exe /C "echo $1" | sed 's/\r\n/\n/g'
}
function win_path_to_wsl {