From 03e617b64a446e6d63f6e92126766874f21b5352 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 12 Mar 2024 10:53:38 +0100 Subject: use file instead of folder to store state --- core/pause | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/pause') 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 -- cgit v1.2.3