From 77deafe73260fb97d5d6e69a456262b613a9377c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 29 Sep 2016 10:25:50 +0100 Subject: [PATCH] Keep track of go version --- src/freedombone-utils-go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/freedombone-utils-go b/src/freedombone-utils-go index ba2ff20a..e172f903 100755 --- a/src/freedombone-utils-go +++ b/src/freedombone-utils-go @@ -197,10 +197,14 @@ function upgrade_golang { return fi + if ! grep -Fxq "upgrade_golang:$GO_VERSION" $COMPLETION_FILE; then + return + fi + rootdir= mesh_upgrade_golang - echo 'upgrade_golang' >> $COMPLETION_FILE + echo "upgrade_golang:$GO_VERSION" >> $COMPLETION_FILE } # NOTE: deliberately there is no "exit 0"