Преглед изворни кода

Small quality of life improvement

Jaap Marcus пре 3 година
родитељ
комит
02126e1f91
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      bin/v-update-sys-hestia-git

+ 7 - 0
bin/v-update-sys-hestia-git

@@ -122,6 +122,13 @@ fork=$1
 branch=$2
 install=$3
 
+# Allow the use of username:branch instead of username branch
+# Both fork and branch names can't contain a : anyway 
+if [ -z "$branch" ]; then 
+    branch = $(echo "$fork" | cut -d ":" -f2)
+    fork = $(echo "$fork" | cut -d ":" -f1)
+fi
+
 # Set Version for compiling
 BUILD_VER=$(curl -s https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/deb/hestia/control | grep "Version:" | cut -d' ' -f2)
 HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"