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