Skip to content

Commit 55bd148

Browse files
author
Kristan Kenney
committed
Fix version check in v-update-sys-hestia-git
1 parent 6bbc5bc commit 55bd148

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/v-update-sys-hestia-git

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ BUILD_DIR='/tmp/hestiacp-src/'
5454
DEB_DIR="$BUILD_DIR/debs/"
5555
INSTALL_DIR='/usr/local/hestia'
5656

57+
# Set command variables
58+
branch=$1
59+
install=$2
60+
5761
# Set Version for compiling
5862
BUILD_VER=$(curl -s https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/hestia/control | grep "Version:" | cut -d' ' -f2)
5963
BUILD_ARCH='amd64'
@@ -76,9 +80,6 @@ timestamp() {
7680
date +%s
7781
}
7882

79-
branch=$1
80-
install=$2
81-
8283
# Set install flags
8384
if [ ! -z "$1" ]; then
8485
branch_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/hestia/control -o /dev/null)

0 commit comments

Comments
 (0)