aboutsummaryrefslogtreecommitdiff
path: root/core/pause
blob: a55bd30e39bb9d03a0938dd43c453efa6f4b377a (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"

[ "$state" != 'running' ] && err "timer is not running"

time="$("$time - $now" | bc)"
state='paused'

save_state