Ver código fonte

Obtain go version from utils script

Bob Mottram 8 anos atrás
pai
commit
8d8690ef08
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/freedombone-backup-remote

+ 2
- 2
src/freedombone-backup-remote Ver arquivo

42
 
42
 
43
 # get the version of Go being used
43
 # get the version of Go being used
44
 if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
44
 if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
45
-	GO_VERSION=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
45
+	GO_VERSION=$(cat /usr/local/bin/${PROJECT_NAME}-utils-go | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
46
 else
46
 else
47
-	GO_VERSION=$(cat /usr/bin/${PROJECT_NAME} | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
47
+	GO_VERSION=$(cat /usr/bin/${PROJECT_NAME}-utils-go | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
48
 fi
48
 fi
49
 
49
 
50
 ADMIN_USERNAME=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}')
50
 ADMIN_USERNAME=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}')