Pārlūkot izejas kodu

Obtain go patameters from utils script

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
6ce9db4899
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4
    4
      src/freedombone-backup-local

+ 4
- 4
src/freedombone-backup-local Parādīt failu

@@ -49,11 +49,11 @@ fi
49 49
 
50 50
 # get the version of Go being used
51 51
 if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
52
-	GO_VERSION=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
53
-	GVM_HOME=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'GVM_HOME=' | head -n 1 | awk -F '=' '{print $2}')
52
+	GO_VERSION=$(cat /usr/local/bin/${PROJECT_NAME}-utils-go | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
53
+	GVM_HOME=$(cat /usr/local/bin/${PROJECT_NAME}-utils-go | grep 'GVM_HOME=' | head -n 1 | awk -F '=' '{print $2}')
54 54
 else
55
-	GO_VERSION=$(cat /usr/bin/${PROJECT_NAME} | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
56
-	GVM_HOME=$(cat /usr/bin/${PROJECT_NAME} | grep 'GVM_HOME=' | head -n 1 | awk -F '=' '{print $2}')
55
+	GO_VERSION=$(cat /usr/bin/${PROJECT_NAME}-utils-go | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
56
+	GVM_HOME=$(cat /usr/bin/${PROJECT_NAME}-utils-go | grep 'GVM_HOME=' | head -n 1 | awk -F '=' '{print $2}')
57 57
 fi
58 58
 
59 59
 ADMIN_USERNAME=