finally fixed legacy sintax or whatever

This commit is contained in:
Histmy 2021-11-07 14:06:43 +01:00
parent 1d62e85925
commit 086f1cbbf2

View File

@ -1,6 +1,6 @@
while true while true
do do
cas=`date +"%s"` cas=$(date +"%s")
if node . $neco if node . $neco
then then
echo stahuju update echo stahuju update
@ -11,7 +11,7 @@ do
else else
echo exit code byl $? echo exit code byl $?
neco=neco neco=neco
novejcas=`date +"%s"` novejcas=$(date +"%s")
if (($cas+86400<$novejcas)) if (($cas+86400<$novejcas))
then then
echo Pošlo to, let\'s restart echo Pošlo to, let\'s restart