From f5706af33743b567e1bcb5ec64fd0e391a2664b9 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 21 Jun 2016 09:59:34 -0400 Subject: [PATCH] Updates functions to add setInterval analogue --- .js_to_bash.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.js_to_bash.sh b/.js_to_bash.sh index 734aa498d..1bbbcec3f 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" +}