blob: 3943ab44c2bad18449bd93684e289be34e3b51bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
set -eu
sec() {
echo -e '\e[1;34m==========' "$@" '==========\e[0m'
}
fail() {
echo -e '\e[1;31m---' "$@" '---' "($?)" '\e[0m'
}
sec "Mail"
mbsync -a
~/.local/sbin/newmail-notify || fail "Mail synchronization reported failure"
sec "Calendar and contacts"
vdirsyncer sync || "Calendar and contacts synchronization reported failure"
|