Make bash quit on a command error

This commit is contained in:
hwsmm 2025-01-02 00:52:41 +09:00
parent d2e30d2167
commit c3dee83d20
1 changed files with 3 additions and 1 deletions

4
External/build.sh vendored
View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
pushd "$(dirname "$0")" >/dev/null
# Check if environment variables are defined
@ -8,7 +10,7 @@ if [[ -z $NAME || -z $RUNNER_OS || -z $FLAGS ]]; then
exit 1
fi
SUDO=$(which sudo)
SUDO=$(which sudo || exit 0)
if [[ $RUNNER_OS == 'Linux' ]]; then
# Setup Linux dependencies