notifications=${my_array[2]}
echo "" > $tmpfile
if [[ $notifications -gt $lasttime ]]; then
+ new=$(expr $notifications - $lasttime)
echo -en "\007"
- echo "You have new notifications!"
+ echo "You have $notifications notifications and $new new notifications!"
read -p "Press enter to continue, or either type amfora or lagrange to go to notifications" answer
case $answer in
amfora)
lasttime=$notifications
unset my_array
fi
- sleep 60
+ sleep 600
done