mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
test: new test, verify task behavior with conditions
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
3e4be9a122
commit
05e6b3e752
4 files changed
+90
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
num=$(cat /run/task.state)
|
||||
if [ -z "$num" ]; then
|
||||
num=0
|
||||
fi
|
||||
|
||||
num=$((num + 1))
|
||||
echo $num > /run/task.state
|
||||
Reference in new issue
Block a user