Просмотр исходного кода

Fix version check in v-update-sys-hestia-git

Kristan Kenney 6 лет назад
Родитель
Сommit
55bd148ede
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      bin/v-update-sys-hestia-git

+ 4 - 3
bin/v-update-sys-hestia-git

@@ -54,6 +54,10 @@ BUILD_DIR='/tmp/hestiacp-src/'
 DEB_DIR="$BUILD_DIR/debs/"
 INSTALL_DIR='/usr/local/hestia'
 
+# Set command variables
+branch=$1
+install=$2
+
 # Set Version for compiling
 BUILD_VER=$(curl -s https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/hestia/control | grep "Version:" | cut -d' ' -f2)
 BUILD_ARCH='amd64'
@@ -76,9 +80,6 @@ timestamp() {
     date +%s
 }
 
-branch=$1
-install=$2
-
 # Set install flags
 if [ ! -z "$1" ]; then
     branch_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/hestia/control -o /dev/null)