all repos — dotfiles @ 44c1aa4719b867b7538b555041efbb8206c6b08f

linux dotfiles

bin/cron/org-autocommit-cron

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh

cd $HOME/docs/org
cmsg=$(git status -s)
git add . && git commit -m "auto commit: $(whoami)@may"\
    -m "$cmsg"

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