19 lines
588 B
Bash
Executable file
19 lines
588 B
Bash
Executable file
#!/bin/bash
|
|
# Alle 2min: status.md aus Claude_desktop → git.consoro.eu/barby/claude-chat-status
|
|
|
|
STATUS_SRC="/Users/matthiaskoerner/Library/Mobile Documents/com~apple~CloudDocs/Claude_desktop/status.md"
|
|
REPO_DIR="/Users/matthiaskoerner/git/claude-chat-status"
|
|
|
|
[ ! -f "$STATUS_SRC" ] && exit 0
|
|
|
|
cp "$STATUS_SRC" "$REPO_DIR/status.md"
|
|
|
|
cd "$REPO_DIR" || exit 1
|
|
git add status.md
|
|
if git diff --cached --quiet; then
|
|
exit 0 # nix geändert
|
|
fi
|
|
|
|
git commit -m "auto-sync $(date '+%H:%M:%S')" --author="Barby <barby@consoro.eu>" -q
|
|
git push origin main -q 2>&1 | logger -t claude-chat-sync
|