Browse Source

Keep track of go version

Bob Mottram 8 years ago
parent
commit
77deafe732
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/freedombone-utils-go

+ 5
- 1
src/freedombone-utils-go View File

@@ -197,10 +197,14 @@ function upgrade_golang {
197 197
         return
198 198
     fi
199 199
 
200
+    if ! grep -Fxq "upgrade_golang:$GO_VERSION" $COMPLETION_FILE; then
201
+        return
202
+    fi
203
+
200 204
     rootdir=
201 205
     mesh_upgrade_golang
202 206
 
203
-    echo 'upgrade_golang' >> $COMPLETION_FILE
207
+    echo "upgrade_golang:$GO_VERSION" >> $COMPLETION_FILE
204 208
 }
205 209
 
206 210
 # NOTE: deliberately there is no "exit 0"