From 56d26099725faedd5929ecf09bc4ccfb9393aa27 Mon Sep 17 00:00:00 2001 From: YX Hao Date: Sat, 15 Nov 2025 08:15:10 +0800 Subject: [PATCH] CI: need bash rather than dash to get $LINENO on Ubuntu `ls -l /bin/sh` yields: /bin/sh -> /bin/dash --- .ci/ci-test.sh | 1 + .github/workflows/releases.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.ci/ci-test.sh b/.ci/ci-test.sh index 61cfde215a..544bf14f0b 100755 --- a/.ci/ci-test.sh +++ b/.ci/ci-test.sh @@ -12,6 +12,7 @@ t() { false } +# Need bash rather than dash to get $LINENO on Ubuntu fail() ( echo "*** Test #${TEST_COUNT} FAILED, line: $1 ***" >&2 ) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 7bd5601d4b..ad7b5384e6 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -48,6 +48,8 @@ jobs: run: | go version cd .ci + # Need bash rather than dash to get $LINENO on Ubuntu + sudo ln -sf /bin/bash /bin/sh ./ci-test.sh cd -