diff options
author | William Carroll <wpcarro@gmail.com> | 2016-06-21T13·59-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2016-06-21T13·59-0400 |
commit | f5706af33743b567e1bcb5ec64fd0e391a2664b9 (patch) | |
tree | 180398b63e25e1fcc76b628bf70cbe6c3e431c4f /.js_to_bash.sh | |
parent | 636347304d94e2353b21b3e6de30bd72e493a3ff (diff) |
Updates functions to add setInterval analogue
Diffstat (limited to '.js_to_bash.sh')
-rw-r--r-- | .js_to_bash.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.js_to_bash.sh b/.js_to_bash.sh index 734aa498dc70..1bbbcec3f92d 100644 --- a/.js_to_bash.sh +++ b/.js_to_bash.sh @@ -30,3 +30,7 @@ function slice { echo $RES1 } + +function setInterval { + eval "while true; do $1; sleep $2; done" +} |