switch to typescript

This commit is contained in:
Matthieu Jolimaitre 2024-11-24 17:07:26 +01:00
parent 0c313f9f48
commit cdec693d39
8 changed files with 104 additions and 32 deletions

20
run-loop Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/bash
set -e
cd "$(dirname "$(realpath "$0")")"
interval="6h"
while true
do
until ping -c 1 '0.0.0.0' > /dev/null
do echo "[run-loop] waiting for internet connection."
done
./run-rotate
echo "[run-loop] Waiting $interval from"
echo " $(date)"
sleep "$interval"
done