#!/bin/bash # Transitional, added 2026-09-17: the sync job moved to cloud-setup, whose # svc/setup.sh points each host's unit at its own copy. A host whose unit still # runs this path -- one that was offline when the units were regenerated -- # lands here: bring its cloud-setup clone up to date and hand over, so it keeps # receiving until someone runs `dotfiles-sync-enable` there. Remove once no unit # points at this file. set -euo pipefail cloud_setup="$HOME/src/soarez/cloud-setup" target="$cloud_setup/bin/dotfiles-sync" if [[ ! -x "$target" && -d "$cloud_setup/.git" ]] then umask 022 git -C "$cloud_setup" fetch --prune origin && git -C "$cloud_setup" merge --ff-only --quiet origin/master || true fi if [[ -x "$target" ]] then exec "$target" "$@" fi >&2 cat <