diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml index 1439e8cc89..cd9c8638f3 100644 --- a/.github/workflows/bsd.yml +++ b/.github/workflows/bsd.yml @@ -52,8 +52,10 @@ jobs: echo "=============== FreeBSD End install =====================" run: | + set -e echo "=============== FreeBSD Start Deps =====================" ./ci/common.deps.sh && echo "=============== FreeBSD Deps Success =====================" echo "=============== FreeBSD Start Build =====================" - ./ci/freebsd.build.sh && echo "=============== FreeBSD Build Success =====================" + ./ci/freebsd.build.sh + echo "=============== FreeBSD Build Success =====================" echo "=============== FreeBSD End Build =====================" diff --git a/ci/freebsd.build.sh b/ci/freebsd.build.sh index 5b3f209a41..80bf84f980 100755 --- a/ci/freebsd.build.sh +++ b/ci/freebsd.build.sh @@ -1,4 +1,10 @@ -#!/usr/bin/env bash -e +#!/usr/bin/env bash +# The options have to be set here, not on the shebang line: env(1) does not +# split its first operand, so "#!/usr/bin/env bash -e" looks for a program +# literally named "bash -e" and exits 127 before running a single line. +# Note that bash is /usr/local/bin/bash on FreeBSD, hence env rather than the +# "#!/bin/bash -e" the other ci/*.build.sh use. +set -e export SCORE_DIR=$PWD