Make sure vs-env.sh actually found vs

Because of course vcvarsall.bat doesn't bother to set a nonzero exit code even if it fails.
This commit is contained in:
Tamás Bálint Misius 2024-01-27 17:25:42 +01:00
parent 622df75c29
commit 09ae62ac9e
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

3
.github/vs-env.sh vendored
View File

@ -24,5 +24,8 @@ IFS=$'\t\n'
for i in $(MSYS_NO_PATHCONV=1 cmd /c "$vs_install_dir\\VC\\Auxiliary\\Build\\vcvarsall.bat" $VS_ENV_PARAMS \& env \& exit /b); do
set +e
export "$i" 2>/dev/null
echo $i | grep ERROR
set -e
done
cl