fix(bootstrap): subshell the repo_root fallback so trailing pwd doesn't corrupt the path

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
jakman85andClaude Opus 4.8 committed 2026-08-25 12:27:34 -05:00
1 parent fff44992e7
commit c6301a79c5
1 file changed
+1 -1
+1 -1
View File
@@ -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}"