Restrict verbose affirmative push telemetry output strictly to --push-only execution mode in run-vps-data-production.sh

This commit is contained in:
Hermes Agent committed 2026-12-02 12:02:58 +00:00
1 parent 3a09d97953
commit 2c05f8e708
1 file changed
+18 -6
+18 -6
View File
@@ -133,7 +133,9 @@ if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_li
STAMP_UTC="$(date -u +%Y-%m-%dT%H:%M:%SZ)" STAMP_UTC="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do
if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then
echo " -> Inspecting ${r} for telemetry updates..." if [[ "${PUSH_ONLY}" -eq 1 ]]; then
echo " -> Inspecting ${r} for telemetry updates..."
fi
if ! git -C "${REPOS_ROOT}/${r}" config user.name 2>&1; then if ! git -C "${REPOS_ROOT}/${r}" config user.name 2>&1; then
git -C "${REPOS_ROOT}/${r}" config user.name "Hyperstition VPS Bot" git -C "${REPOS_ROOT}/${r}" config user.name "Hyperstition VPS Bot"
git -C "${REPOS_ROOT}/${r}" config user.email "vps-bot@hyperstitionstud.io" git -C "${REPOS_ROOT}/${r}" config user.email "vps-bot@hyperstitionstud.io"
@@ -142,16 +144,26 @@ if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_li
git -C "${REPOS_ROOT}/${r}" remote set-url origin "${forge_ssh}/${r}.git" || true git -C "${REPOS_ROOT}/${r}" remote set-url origin "${forge_ssh}/${r}.git" || true
git -C "${REPOS_ROOT}/${r}" add -A git -C "${REPOS_ROOT}/${r}" add -A
if ! git -C "${REPOS_ROOT}/${r}" diff --cached --quiet; then if ! git -C "${REPOS_ROOT}/${r}" diff --cached --quiet; then
echo " [commit] Committing new telemetry changes in ${r}..." if [[ "${PUSH_ONLY}" -eq 1 ]]; then
echo " [commit] Committing new telemetry changes in ${r}..."
fi
run_checked "git commit (${r})" git -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})" || true run_checked "git commit (${r})" git -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})" || true
else else
echo " [clean] Repository ${r} working tree is clean (no new local telemetry changes to commit)." if [[ "${PUSH_ONLY}" -eq 1 ]]; then
echo " [clean] Repository ${r} working tree is clean (no new local telemetry changes to commit)."
fi
fi
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
echo " [sync] Pulling and rebasing origin/main for ${r}..."
fi fi
echo " [sync] Pulling and rebasing origin/main for ${r}..."
run_checked "git pull --rebase --autostash (${r})" git -C "${REPOS_ROOT}/${r}" pull --rebase --autostash origin main || true run_checked "git pull --rebase --autostash (${r})" git -C "${REPOS_ROOT}/${r}" pull --rebase --autostash origin main || true
echo " [push] Pushing ${r} to git.libre.audio..." if [[ "${PUSH_ONLY}" -eq 1 ]]; then
echo " [push] Pushing ${r} to git.libre.audio..."
fi
run_checked "git push (${r})" git -C "${REPOS_ROOT}/${r}" push origin main || true run_checked "git push (${r})" git -C "${REPOS_ROOT}/${r}" push origin main || true
echo " [ok] Repository ${r} successfully pushed to git.libre.audio." if [[ "${PUSH_ONLY}" -eq 1 ]]; then
echo " [ok] Repository ${r} successfully pushed to git.libre.audio."
fi
fi fi
done done
else else