minor update to bash script
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#change to ccurrent directory
|
||||
#change to current directory
|
||||
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
|
||||
cd ../..
|
||||
|
||||
@@ -27,6 +27,7 @@ echo $num > log/number
|
||||
#watchdog
|
||||
while true
|
||||
do
|
||||
|
||||
#increment log file number
|
||||
num=$(( num + 1 ))
|
||||
echo $num > log/number
|
||||
@@ -35,6 +36,7 @@ do
|
||||
npm start 2> log/$num.err | tee log/$num.out
|
||||
|
||||
#give chance to close program
|
||||
sleep 5
|
||||
printf "\n\n\n${C1}press ${C2}Control+C${C1} to close${NC}\n\n\n"
|
||||
sleep 5
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user