Skip to content

Commit ad4f86c

Browse files
committed
Fixed menu update notification
1 parent fd5cbdb commit ad4f86c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ IOTstack is a builder for docker-compose to easily make and maintain IoT stacks
66

77
The bulk of the README has moved to the Wiki. Please check it out [here](https://github.com/gcgarner/IOTstack/wiki)
88

9+
* 2019-11-28 Fixed update notification on menu because
910
* 2019-11-28 Fixed mosquitto logs and database not mapping correctly to volumes. Pull new template to fix
1011
* 2019-11-28 added the option to disable swapfile by setting swappiness to 0
1112
* 2019-11-28 PR @stfnhmplr fixed incorrect shegang on MariaDB terminal.sh

menu.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,13 @@ function yml_builder() {
135135
echo "checking for project update"
136136
git fetch origin master
137137

138-
if [ $(git status | grep -c "Your branch is up to date") ]; then
138+
if [ $(git status | grep -c "Your branch is up to date") -eq 1 ]; then
139+
#delete .outofdate if it exisist
139140
[ -f .outofdate ] && rm .outofdate
141+
echo "Project is up to date"
140142

141143
else
144+
echo "An update is available for the project"
142145
if [ ! -f .outofdate ]; then
143146
whiptail --title "Project update" --msgbox "An update is available for the project\nYou will not be reminded again until you next update" 8 78
144147
touch .outofdate

0 commit comments

Comments
 (0)