aboutsummaryrefslogtreecommitdiff
path: root/core/pause
blob: 3037c1c310605cc2c5a416518d94f75ef0a4dcd0 (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="$(echo "$time - $now" | bc)"
state='paused'

save_state