From 756b20ef3c87f160654e96e296addbd4467ede7d Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Fri, 13 Mar 2026 23:41:33 -0500 Subject: [PATCH] fix(ci): use bash instead of sh for generate-api-docs.sh The script uses bash-specific syntax (function, local, [[ ]]), but package.json invoked it with sh. On Ubuntu CI runners sh is dash, which rejects function keyword. Matches the script's #\!/bin/bash shebang. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 18b58fff1..1f7adf47c 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "docs:add-placeholders": "node scripts/docs-cli/docs-cli.js add-placeholders", "docs:audit": "node scripts/docs-cli/docs-cli.js audit", "docs:release-notes": "node scripts/docs-cli/docs-cli.js release-notes", - "build:api-docs": "cd api-docs && sh generate-api-docs.sh", + "build:api-docs": "cd api-docs && bash generate-api-docs.sh", "build:api-docs:scripts": "tsc --project api-docs/scripts/tsconfig.json", "build:pytest:image": "docker build -t influxdata/docs-pytest:latest -f Dockerfile.pytest .", "build:agent:instructions": "node ./helper-scripts/build-agent-instructions.js",