fix(terraform): invoke package build via bash

HCP launches the external data source with bash, so the inner build script should not depend on the git executable bit.
This commit is contained in:
Adam Moussa 2026-08-27 17:48:56 -04:00
parent 47deda20a0
commit 885c816618
No known key found for this signature in database

View file

@ -3,7 +3,10 @@
set -euo pipefail
ROOT="$(cd "$(dirname "$0")" && pwd)"
"${ROOT}/build_packages.sh" >&2
# artifacts.tf already launches this file with bash, so +x is not required
# here. Invoke the inner script the same way so HCP plan does not depend on
# the git executable bit.
bash "${ROOT}/build_packages.sh" >&2
if command -v sha256sum >/dev/null 2>&1; then
SHA=(sha256sum)