10 lines
280 B
Bash
Executable File
10 lines
280 B
Bash
Executable File
#!/bin/bash
|
|
VAULT="/root/.openclaw/workspace/obsidian-vault"
|
|
cd "$VAULT"
|
|
git pull origin main >/dev/null 2>&1
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
git add -A
|
|
git commit -m "sync $(date '+%Y-%m-%d %H:%M')" >/dev/null 2>&1
|
|
git push origin main >/dev/null 2>&1
|
|
fi
|