mirror of https://github.com/ppy/SDL3-CS.git
Make bash quit on a command error
This commit is contained in:
parent
d2e30d2167
commit
c3dee83d20
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
pushd "$(dirname "$0")" >/dev/null
|
pushd "$(dirname "$0")" >/dev/null
|
||||||
|
|
||||||
# Check if environment variables are defined
|
# Check if environment variables are defined
|
||||||
|
|
@ -8,7 +10,7 @@ if [[ -z $NAME || -z $RUNNER_OS || -z $FLAGS ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SUDO=$(which sudo)
|
SUDO=$(which sudo || exit 0)
|
||||||
|
|
||||||
if [[ $RUNNER_OS == 'Linux' ]]; then
|
if [[ $RUNNER_OS == 'Linux' ]]; then
|
||||||
# Setup Linux dependencies
|
# Setup Linux dependencies
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue