Skip to content

Commit a15d3d0

Browse files
committed
CI: environment.sh: set -eu
the script is sourced so errexit+nounset is perhaps not yet set But it is better to exit early, especially when setting the environment variables that are considered a prerequisite.
1 parent 0cfe4b6 commit a15d3d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/scripts/environment.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
## - **apple_key_p12_b64** - [mac only] base64-encoded $KEY_FILE (using
1010
## password $KEY_FILE_PASS)
1111

12+
set -eu
13+
1214
if expr "$GITHUB_REF" : 'refs/tags/' >/dev/null; then
1315
TAG=${GITHUB_REF#refs/tags/}
1416
VERSION=${TAG#v}

0 commit comments

Comments
 (0)