This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/wiki-sync

13 lines
259 B
Plaintext
Raw Normal View History

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