Updates functions to add setInterval analogue
This commit is contained in:
parent
636347304d
commit
f5706af337
1 changed files with 4 additions and 0 deletions
|
@ -30,3 +30,7 @@ function slice {
|
|||
|
||||
echo $RES1
|
||||
}
|
||||
|
||||
function setInterval {
|
||||
eval "while true; do $1; sleep $2; done"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue