aboutsummaryrefslogtreecommitdiff
path: root/core/pause
blob: abba7cad6643c7e80a3314652dbc6287f69d2aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
[ "$1" = "info" ] && echo "pause the timer" && exit 2

. "$core_path/lib"
. "$core_path/update"

[ $running -eq 0 ] && err "timer is not running"

time="$(echo "$time - $now" | bc)"
running=0

save_state