dots/files/.local/bin/pass-sync
2026-02-05 06:54:50 +01:00

8 lines
157 B
Bash
Executable file

#!/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