mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
CI: Fix CI_HELPER
Commit18d3c529facaused CI_HELPER to be set to "''" (two single quotes), leading to an error when test.sh tries to source $CI_HELPER. CI_HELPER is not set anywhere else and not passed into the container environment, so there is no need to test if it has a value. This fixes the value of CI_HELPER. Fixes:18d3c529fa("github-ci: error on any shell errors") Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
4
.github/workflows/entrypoint.sh
vendored
4
.github/workflows/entrypoint.sh
vendored
@@ -13,7 +13,7 @@ mkdir -p /var/lock/
|
||||
|
||||
opkg update
|
||||
|
||||
[ -n "${CI_HELPER:=''}" ] || CI_HELPER="/ci/.github/workflows/ci_helpers.sh"
|
||||
export CI_HELPER="/ci/.github/workflows/ci_helpers.sh"
|
||||
|
||||
for PKG in /ci/*.ipk; do
|
||||
tar -xzOf "$PKG" ./control.tar.gz | tar xzf - ./control
|
||||
@@ -42,7 +42,7 @@ for PKG in /ci/*.ipk; do
|
||||
continue
|
||||
fi
|
||||
|
||||
export PKG_NAME PKG_VERSION CI_HELPER
|
||||
export PKG_NAME PKG_VERSION
|
||||
|
||||
if [ -f "$PRE_TEST_SCRIPT" ]; then
|
||||
echo "Use package specific pre-test.sh"
|
||||
|
||||
Reference in New Issue
Block a user