aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/entrypoint.sh')
-rwxr-xr-x.github/workflows/entrypoint.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/entrypoint.sh b/.github/workflows/entrypoint.sh
index 760410547..6af84b8e7 100755
--- a/.github/workflows/entrypoint.sh
+++ b/.github/workflows/entrypoint.sh
@@ -1,10 +1,14 @@
#!/bin/sh
+# not enabling `errtrace` and `pipefail` since those are bash specific
+set -o errexit # failing commands causes script to fail
+set -o nounset # undefined variables causes script to fail
+
mkdir -p /var/lock/
opkg update
-[ -n "$CI_HELPER" ] || CI_HELPER="/ci/.github/workflows/ci_helpers.sh"
+[ -n "${CI_HELPER:=''}" ] || CI_HELPER="/ci/.github/workflows/ci_helpers.sh"
for PKG in /ci/*.ipk; do
tar -xzOf "$PKG" ./control.tar.gz | tar xzf - ./control