From b8f766de0343d8936039195e4ca4f7a8bbb6b0eb Mon Sep 17 00:00:00 2001 From: Jon Chery Date: Wed, 12 Aug 2026 21:51:56 +0000 Subject: [PATCH] =?UTF-8?q?fix(P1):=20use=20#!/bin/sh=20not=20bash=20?= =?UTF-8?q?=E2=80=94=20runner=20uses=20dash=20as=20/bin/sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Gitea Actions runner (ubuntu-latest) uses dash as /bin/sh. The previous script used #!/bin/bash with 'set -uo pipefail' — pipefail is bash-only and causes 'set: illegal option -o pipefail' (exit 2) in dash. This was the root cause of the build job failing in 2 seconds. Fix: #!/bin/sh with 'set -u' only (no pipefail). Removed bash-only features. The script is POSIX-compliant. ---ci--- project: orca phase: 1 milestone: v0.16 status: execute ---/ci--- --- scripts/ci-run.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/ci-run.sh b/scripts/ci-run.sh index 2451d87..4f68bb2 100755 --- a/scripts/ci-run.sh +++ b/scripts/ci-run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # ci-run.sh — CoreCI pipeline runner for orca. # Called by .coreci.yml jobs via: sh scripts/ci-run.sh # @@ -10,8 +10,11 @@ # CI_COMMIT_BRANCH — tag name on tag pushes (from GITHUB_REF_NAME) # CI_COMMIT_SHA — commit SHA # GITEA_TOKEN — Gitea API token (from Gitea Actions secret PAT_TOKEN) +# +# NOTE: uses #!/bin/sh — do NOT use bash-only features (pipefail, [[ ]], etc.) +# The Gitea Actions runner uses dash as /bin/sh. -set -uo pipefail +set -u JOB="${1:-}" if [ -z "$JOB" ]; then