From a96b0a99f410f24ae327a041b4f13379b4ea7d66 Mon Sep 17 00:00:00 2001 From: monty Date: Sat, 30 Nov 2019 14:48:51 +0100 Subject: [PATCH] auto restart file thingy --- run.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 run.sh diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..526ed8f --- /dev/null +++ b/run.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +FILE=run +NODE=node + +while true; +do + $NODE $(pwd)/$FILE.js +done \ No newline at end of file