diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-12 10:53:38 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-12 10:53:38 +0100 |
commit | 03e617b64a446e6d63f6e92126766874f21b5352 (patch) | |
tree | c9aa314874056387a2ab2a477e52ab24fc98baf5 /core/start | |
parent | d59b4d2f4377613719785c2685ceff0a8a0f55ab (diff) |
use file instead of folder to store state
Diffstat (limited to 'core/start')
-rwxr-xr-x | core/start | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |