Use another approach for determining if Visual Studio installed.

The version of Bash included with Ubuntu 22.04 has a bug with
redirections that I forgot about. What was there in the last commit was
syntatically correct and works fine locally, but not up in CI, so let's
try another approach.
This commit is contained in:
Douglas R. Reno 2024-10-17 11:49:06 -05:00
parent 71447018c5
commit 53d49c550e

View file

@ -39,9 +39,7 @@ jobs:
--quiet --norestart --noUpdateInstaller \
--installPath "$vs" \
--config .vsconfig
RESULT=$?
echo "vs_installer.exe exit code: $RESULT"
if [ $RESULT != 0]; then
if [ $? == 0 ]; then
cd /tmp
curl -fsSL https://aka.ms/vscollect.exe -o vscollect.exe
chmod +x vscollect.exe
@ -49,6 +47,8 @@ jobs:
unzip vscollect.zip
cat *.log
exit 1
else
echo "Installation of Visual Studio was successful."
fi