all repos — dotfiles @ 22b436ec5d011f3e0b75fcd759576433190902de

linux dotfiles

bin/scripts/org-autocommit-cron (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
cd $HOME/docs/org
git pull
git add . && git commit -m "auto commit: $(whoami)@may"

# check for connectivity before pushing
if nc -dzw1 google.com 443; then
    git remote | xargs -L1 git push
    cd $HOME
    pass git remote | xargs -I B pass git pull B master
    pass git remote | xargs -L1 pass git push
fi