2020-10-23 10:06:15 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
for wiki in ~/vimwiki/*
|
|
|
|
do
|
2020-11-06 12:50:44 +00:00
|
|
|
[[ $wiki =~ _html$ ]] && continue
|
2020-10-23 10:06:15 +00:00
|
|
|
echo Synching $wiki
|
|
|
|
git -C $wiki pull --rebase --autostash
|
|
|
|
git -C $wiki add .
|
|
|
|
git -C $wiki commit -a -n -m "Auto-update"
|
|
|
|
git -C $wiki push
|
2020-11-06 12:50:44 +00:00
|
|
|
echo done synching $wiki.
|
2020-10-23 10:06:15 +00:00
|
|
|
done
|