Auto-commit: 2026-04-15 11:02
This commit is contained in:
20
scripts/commit-and-sync.sh
Executable file
20
scripts/commit-and-sync.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Git commit + Sync zu TrueNAS
|
||||
|
||||
WORKSPACE="/root/.openclaw/workspace"
|
||||
cd "$WORKSPACE"
|
||||
|
||||
# Git: alle Änderungen committen
|
||||
echo "=== Git Commit ==="
|
||||
git add -A
|
||||
if git diff --cached --quiet; then
|
||||
echo "No changes to commit"
|
||||
else
|
||||
git commit -m "Auto-commit: $(date '+%Y-%m-%d %H:%M')" 2>&1
|
||||
git push origin master 2>&1
|
||||
fi
|
||||
|
||||
# Sync zu TrueNAS
|
||||
echo ""
|
||||
echo "=== Sync zu TrueNAS ==="
|
||||
bash "$WORKSPACE/scripts/sync-to-truenas.sh"
|
||||
Reference in New Issue
Block a user