mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-10 12:47:04 +00:00
index 9bcfc96c8..2c5b6d930 100755
--- a/scripts/tests/deploy-local-full.sh
+++ b/scripts/tests/deploy-local-full.sh
@@ -66,54 +66,53 @@ echo
# ---------------------------------------------------------------------------
# 2) Run entry.sh + create inventory + deploy INSIDE container
# ---------------------------------------------------------------------------
-docker exec -t "${INFINITO_CONTAINER}" bash -lc "
+docker exec -t "${INFINITO_CONTAINER}" bash -lc '
set -euo pipefail
cd /opt/src/infinito
- echo '>>> Running entry.sh bootstrap'
+ echo ">>> Running entry.sh bootstrap"
./scripts/docker/entry.sh true
- inv_dir='${INVENTORY_BASE_DIR}/local-full-${TEST_DEPLOY_TYPE}'
- inv_file=\"\${inv_dir}/servers.yml\"
- pw_file=\"\${inv_dir}/.password\"
+ inv_dir="'"${INVENTORY_BASE_DIR}"'/local-full-'"${TEST_DEPLOY_TYPE}"'"
+ inv_file="${inv_dir}/servers.yml"
+ pw_file="${inv_dir}/.password"
- mkdir -p \"\${inv_dir}\"
+ mkdir -p "${inv_dir}"
- if [[ ! -f \"\${pw_file}\" ]]; then
- printf '%s\n' 'local-vault-password' > \"\${pw_file}\"
- chmod 600 \"\${pw_file}\" || true
+ if [[ ! -f "${pw_file}" ]]; then
+ printf "%s\n" "local-vault-password" > "${pw_file}"
+ chmod 600 "${pw_file}" || true
fi
- echo '>>> Creating inventory at' \"\${inv_file}\"
- echo '>>> Include apps count: ${apps_count}'
- # Avoid printing the full CSV (it is huge); show first few instead:
- echo '>>> Include sample:' \"\$(python3 - <<'PY'
-import sys
fix(tests): stabilize deploy-local-full.sh quoting and sample generation
- Fix broken heredoc usage inside docker exec bash -lc block
- Prevent apps CSV from being interpreted as a shell command
- Make sample generation robust using python -c
- Ensure --include argument is expanded correctly
- Improve errexit reliability by avoiding command substitution inside echo
- Normalize quoting for host/container variable expansion
https://chatgpt.com/share/696c928c-38a4-800f-a45b-d5f3bba908ff