fix pipeline use of bash
This commit is contained in:
@@ -114,14 +114,11 @@ jobs:
|
||||
env:
|
||||
SB_KEY: ${{ secrets.SB_KEY }}
|
||||
SB_CERT: ${{ secrets.SB_CERT }}
|
||||
# POSIX sh (the runner defaults to dash) — no bashisms like ${!v}.
|
||||
run: |
|
||||
miss=0
|
||||
for v in SB_KEY SB_CERT; do
|
||||
if [ -z "${!v}" ]; then
|
||||
echo "::error::required secret ${v} is empty — the fleet-ipxe bootloader must be signed (no unsigned fallback). Set it in the Gitea repo secrets."
|
||||
miss=1
|
||||
fi
|
||||
done
|
||||
[ -n "$SB_KEY" ] || { echo "::error::required secret SB_KEY is empty — the fleet-ipxe bootloader must be signed (no unsigned fallback). Set it in the Gitea repo secrets."; miss=1; }
|
||||
[ -n "$SB_CERT" ] || { echo "::error::required secret SB_CERT is empty — the fleet-ipxe bootloader must be signed (no unsigned fallback). Set it in the Gitea repo secrets."; miss=1; }
|
||||
[ "$miss" = 0 ] || exit 1
|
||||
echo "Production gate passed: SB_KEY, SB_CERT present."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user