From c6301a79c5df718ecccdaeab44fa1e2a7d7089e1 Mon Sep 17 00:00:00 2001 From: Keith Jackson Date: Tue, 25 Aug 2026 12:27:34 -0500 Subject: [PATCH] fix(bootstrap): subshell the repo_root fallback so trailing pwd doesn't corrupt the path Co-Authored-By: Claude Opus 4.8 --- bootstrap/flux/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/flux/bootstrap.sh b/bootstrap/flux/bootstrap.sh index 580d20f..a7a9f57 100755 --- a/bootstrap/flux/bootstrap.sh +++ b/bootstrap/flux/bootstrap.sh @@ -57,7 +57,7 @@ SOPS_SECRET_NAME="${SOPS_SECRET_NAME:-sops-age}" FLUX_COMPONENTS_EXTRA="${FLUX_COMPONENTS_EXTRA:-image-reflector-controller,image-automation-controller}" script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -repo_root="$(git -C "${script_dir}" rev-parse --show-toplevel 2>/dev/null || cd "${script_dir}/../.." && pwd)" +repo_root="$(git -C "${script_dir}" rev-parse --show-toplevel 2>/dev/null || (cd "${script_dir}/../.." && pwd))" echo "==> Flux + SOPS bootstrap (dev) — path=${FLUX_ENV_PATH}"