Skip to content

Commit

Permalink
bugfix: Remove carriage return from vswhere output
Browse files Browse the repository at this point in the history
jonahbeckford committed Nov 30, 2023
1 parent 3ef4910 commit 2682170
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unix/crossplatform-functions.sh
Original file line number Diff line number Diff line change
@@ -2332,6 +2332,7 @@ autodetect_compiler_system() {
-property installationPath \
-latest || true)
if [ -n "$autodetect_compiler_system_COMPATIBLE_INSTALLDIR" ]; then
autodetect_compiler_system_COMPATIBLE_INSTALLDIR=$(printf "%s" "$autodetect_compiler_system_COMPATIBLE_INSTALLDIR" | "$DKMLSYS_AWK" 'BEGIN{RS="\r\n"} {print; exit}')
autodetect_compiler_vsdev "$autodetect_compiler_system_COMPATIBLE_INSTALLDIR"
return # done. [autodetect_compiler_vsdev] wrote the compiler variables
fi

0 comments on commit 2682170

Please sign in to comment.