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/start | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/start') diff --git a/core/start b/core/start index dbbabc0..65e9c1f 100755 --- a/core/start +++ b/core/start @@ -26,7 +26,7 @@ while [ $# -gt 0 ] ; do esac done -if [ "$state" = 'running' ] ; then +if [ $running -eq 1 ] ; then [ $allow_skip -eq 0 ] && err "timer is already running, use -s to skip lap" lap=$(( $lap + 1 )) update_time=1 @@ -34,7 +34,7 @@ if [ "$state" = 'running' ] ; then fi time="$(echo "$now + $time" | bc)" -state='running' +running=1 save_state -- cgit v1.2.3