Denim-Bot/start.sh
2021-08-18 21:26:00 +02:00

21 lines
389 B
Bash

while true
do
cas=`date +"%s"`
if node . $?
then
echo stahuju update
git stash
git pull
else
echo exit code byl $?
novejcas=`date +"%s"`
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