Skip to content

Commit

Permalink
Fixed menu update notification
Browse files Browse the repository at this point in the history
  • Loading branch information
gcgarner committed Nov 28, 2019
1 parent fd5cbdb commit ad4f86c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ IOTstack is a builder for docker-compose to easily make and maintain IoT stacks

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

* 2019-11-28 Fixed update notification on menu because
* 2019-11-28 Fixed mosquitto logs and database not mapping correctly to volumes. Pull new template to fix
* 2019-11-28 added the option to disable swapfile by setting swappiness to 0
* 2019-11-28 PR @stfnhmplr fixed incorrect shegang on MariaDB terminal.sh
Expand Down
5 changes: 4 additions & 1 deletion menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,13 @@ function yml_builder() {
echo "checking for project update"
git fetch origin master

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

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

0 comments on commit ad4f86c

Please sign in to comment.