fix: deploy.sh rsync excludes were broken — quotes passed literally
Some checks are pending
CI / lint-and-test (push) Waiting to run
Some checks are pending
CI / lint-and-test (push) Waiting to run
RSYNC_FLAGS as a string meant --exclude='__pycache__' passed literal quotes to rsync, matching nothing. Switched to bash array (RSYNC_OPTS) so excludes work correctly. __pycache__ and .pyc files no longer sync. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
670c50f384
commit
368b5793d3
1 changed files with 9 additions and 9 deletions
|
|
@ -55,41 +55,41 @@ fi
|
||||||
echo "All files pass syntax check."
|
echo "All files pass syntax check."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
RSYNC_FLAGS="-avz --exclude='__pycache__' --exclude='*.pyc' --exclude='*.bak*'"
|
RSYNC_OPTS=(-avz --exclude __pycache__ --exclude '*.pyc' --exclude '*.bak*')
|
||||||
if $DRY_RUN; then
|
if $DRY_RUN; then
|
||||||
RSYNC_FLAGS="$RSYNC_FLAGS --dry-run"
|
RSYNC_OPTS+=(--dry-run)
|
||||||
echo "=== DRY RUN ==="
|
echo "=== DRY RUN ==="
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Pipeline lib/ ==="
|
echo "=== Pipeline lib/ ==="
|
||||||
rsync $RSYNC_FLAGS "$REPO_ROOT/lib/" "$VPS_HOST:$VPS_PIPELINE/lib/"
|
rsync "${RSYNC_OPTS[@]}" "$REPO_ROOT/lib/" "$VPS_HOST:$VPS_PIPELINE/lib/"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "=== Pipeline top-level ==="
|
echo "=== Pipeline top-level ==="
|
||||||
for f in teleo-pipeline.py reweave.py fetch_coins.py; do
|
for f in teleo-pipeline.py reweave.py fetch_coins.py; do
|
||||||
[ -f "$REPO_ROOT/$f" ] || continue
|
[ -f "$REPO_ROOT/$f" ] || continue
|
||||||
rsync $RSYNC_FLAGS "$REPO_ROOT/$f" "$VPS_HOST:$VPS_PIPELINE/$f"
|
rsync "${RSYNC_OPTS[@]}" "$REPO_ROOT/$f" "$VPS_HOST:$VPS_PIPELINE/$f"
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "=== Telegram bot ==="
|
echo "=== Telegram bot ==="
|
||||||
rsync $RSYNC_FLAGS --exclude='__pycache__' "$REPO_ROOT/telegram/" "$VPS_HOST:$VPS_PIPELINE/telegram/"
|
rsync "${RSYNC_OPTS[@]}" "$REPO_ROOT/telegram/" "$VPS_HOST:$VPS_PIPELINE/telegram/"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "=== Tests ==="
|
echo "=== Tests ==="
|
||||||
rsync $RSYNC_FLAGS --exclude='__pycache__' "$REPO_ROOT/tests/" "$VPS_HOST:$VPS_PIPELINE/tests/"
|
rsync "${RSYNC_OPTS[@]}" "$REPO_ROOT/tests/" "$VPS_HOST:$VPS_PIPELINE/tests/"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "=== Diagnostics ==="
|
echo "=== Diagnostics ==="
|
||||||
rsync $RSYNC_FLAGS "$REPO_ROOT/diagnostics/" "$VPS_HOST:$VPS_DIAGNOSTICS/"
|
rsync "${RSYNC_OPTS[@]}" "$REPO_ROOT/diagnostics/" "$VPS_HOST:$VPS_DIAGNOSTICS/"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "=== Agent state ==="
|
echo "=== Agent state ==="
|
||||||
rsync $RSYNC_FLAGS "$REPO_ROOT/agent-state/" "$VPS_HOST:$VPS_AGENT_STATE/"
|
rsync "${RSYNC_OPTS[@]}" "$REPO_ROOT/agent-state/" "$VPS_HOST:$VPS_AGENT_STATE/"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "=== Research session ==="
|
echo "=== Research session ==="
|
||||||
rsync $RSYNC_FLAGS "$REPO_ROOT/research/research-session.sh" "$VPS_HOST:/opt/teleo-eval/research-session.sh"
|
rsync "${RSYNC_OPTS[@]}" "$REPO_ROOT/research/research-session.sh" "$VPS_HOST:/opt/teleo-eval/research-session.sh"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if $DRY_RUN; then
|
if $DRY_RUN; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue