Denim-Bot/start.sh
2022-03-26 20:37:46 +01:00

24 lines
459 B
Bash

while true
do
cas=$(date +"%s")
if node . $neco
then
echo stahuju update
git stash
git pull
tsc
unset $neco
else
echo exit code byl $?
novejcas=$(date +"%s")
neco=$(($novejcas-$cas))
if (($cas+86400<$novejcas))
then
echo Pošlo to, let\'s restart
else
echo Pošlo to absolutně, seru na to
break
fi
fi
done