projects
/
stationnotifier
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[stationnotifier]
/
notificatorossl
diff --git
a/notificatorossl
b/notificatorossl
index 4b2a9e5e6d97205d747b28a12596dba9eece1f72..ce4aef485530ccec4d85ba4916096dabe1482f7e 100755
(executable)
--- a/
notificatorossl
+++ b/
notificatorossl
@@
-35,8
+35,9
@@
do
notifications=${my_array[2]}
echo "" > $tmpfile
if [[ $notifications -gt $lasttime ]]; then
notifications=${my_array[2]}
echo "" > $tmpfile
if [[ $notifications -gt $lasttime ]]; then
+ new=$(expr $notifications - $lasttime)
echo -en "\007"
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)
read -p "Press enter to continue, or either type amfora or lagrange to go to notifications" answer
case $answer in
amfora)
@@
-55,6
+56,6
@@
echo "waiting for new notifications"
lasttime=$notifications
unset my_array
fi
lasttime=$notifications
unset my_array
fi
- sleep 60
+ sleep 60
0
done
done