ssh changees and sync with mac

This commit is contained in:
2026-02-20 09:53:18 +00:00
parent f7deb87360
commit c607122cc4
6 changed files with 38 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -eu
lock_dir="$HOME/.cache/matugen-sync-pi.lock"
log_file="$HOME/.cache/matugen-sync-pi.log"
mkdir -p "$HOME/.cache"
if mkdir "$lock_dir" 2>/dev/null; then
{
ssh mac-attio "mkdir -p ~/.pi/agent/themes"
scp "$HOME/.pi/agent/themes/matugen.json" \
mac-attio:~/.pi/agent/themes/
} >>"$log_file" 2>&1
rmdir "$lock_dir"
fi