#!/bin/sh set -e { ping -c1 -W3 1.1.1.1 >/dev/null || exit # no network conncetion pass git pull pass git push -u --all date } > "$HOME/.last-sync" 2>&1