12 lines
212 B
Bash
Executable File
12 lines
212 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SLEEP_TIME=${SLEEP_TIME:-21600}
|
|
|
|
while true; do
|
|
DATE=$(date)
|
|
node dist/index.js
|
|
echo "Last run time: $DATE"
|
|
echo "Will run in $((SLEEP_TIME / 60)) minutes"
|
|
sleep "$SLEEP_TIME"
|
|
done
|