Clearly signal that sudo is not available on windows

This commit is contained in:
Susko3 2025-01-01 23:44:59 +01:00
parent c3dee83d20
commit d836630eab
1 changed files with 3 additions and 1 deletions

4
External/build.sh vendored
View File

@ -10,7 +10,9 @@ if [[ -z $NAME || -z $RUNNER_OS || -z $FLAGS ]]; then
exit 1
fi
SUDO=$(which sudo || exit 0)
if [[ $RUNNER_OS != 'Windows' ]]; then
SUDO=$(which sudo)
fi
if [[ $RUNNER_OS == 'Linux' ]]; then
# Setup Linux dependencies