Fixed mt.exe check for installer script

This commit is contained in:
Internet Addict 2025-02-19 09:02:21 +00:00
parent 4ad5b15db7
commit 99d6eee147

View file

@ -28,7 +28,12 @@ jobs:
- name: Check mt.exe availability - name: Check mt.exe availability
shell: bash shell: bash
run: | run: |
mt.exe /? > /dev/null 2>&1 || { echo "mt.exe not available, please install the Windows SDK"; exit 1; } if ! command -v mt.exe > /dev/null 2>&1; then
echo "mt.exe not available, please install the Windows SDK"
exit 1
else
echo "mt.exe is available"
fi
- name: Clone Publisher repo and Generate Manifest Files - name: Clone Publisher repo and Generate Manifest Files
shell: bash shell: bash