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/toggle | |
parent | d59b4d2f4377613719785c2685ceff0a8a0f55ab (diff) |
use file instead of folder to store state
Diffstat (limited to 'core/toggle')
-rwxr-xr-x | core/toggle | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/toggle b/core/toggle index bfb96d2..54dcc8d 100755 --- a/core/toggle +++ b/core/toggle @@ -3,5 +3,5 @@ . "$core_path/update" -[ "$state" = 'running' ] && exec "$prog" pause || exec "$prog" start +[ $running -eq 1 ] && exec "$prog" pause || exec "$prog" start |