aboutsummaryrefslogtreecommitdiff
path: root/core/pause
diff options
context:
space:
mode:
Diffstat (limited to 'core/pause')
-rwxr-xr-xcore/pause4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pause b/core/pause
index 3037c1c..abba7ca 100755
--- a/core/pause
+++ b/core/pause
@@ -4,10 +4,10 @@
. "$core_path/lib"
. "$core_path/update"
-[ "$state" != 'running' ] && err "timer is not running"
+[ $running -eq 0 ] && err "timer is not running"
time="$(echo "$time - $now" | bc)"
-state='paused'
+running=0
save_state