about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2016-06-21T13·59-0400
committerWilliam Carroll <wpcarro@gmail.com>2016-06-21T13·59-0400
commitf5706af33743b567e1bcb5ec64fd0e391a2664b9 (patch)
tree180398b63e25e1fcc76b628bf70cbe6c3e431c4f
parent636347304d94e2353b21b3e6de30bd72e493a3ff (diff)
Updates functions to add setInterval analogue
-rw-r--r--.js_to_bash.sh4
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"
+}