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
1 changed files with 1 additions and 1 deletions

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 {