Skip to content

Commit 333ad5f

Browse files
committed
Small quality of life improvement
1 parent 5111e44 commit 333ad5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/v-update-sys-hestia-git

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ branch=$2
9191
install=$3
9292
flags=$4
9393

94+
# Allow the use of username:branch instead of username branch
95+
# Both fork and branch names can't contain a : anyway
96+
if [ -z "$branch" ]; then
97+
branch = $(echo "$fork" | cut -d ":" -f2)
98+
fork = $(echo "$fork" | cut -d ":" -f1)
99+
fi
100+
94101
# Set Version for compiling
95102
BUILD_VER=$(curl -s https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/deb/hestia/control | grep "Version:" | cut -d' ' -f2)
96103
HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"

0 commit comments

Comments
 (0)