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

Correct installation flags for hst_autocompile.sh

Kristan Kenney 7 лет назад
Родитель
Сommit
97684f1a91
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/hst_autocompile.sh

+ 5 - 5
src/hst_autocompile.sh

@@ -60,11 +60,6 @@ for arg; do
     esac
 done
 
-# If branch was specified at run-time, convert its value to the branch variable
-if [ "$3" ]; then
-    branch=$3
-fi
-
 if [ ! "$1" = "--all" ] || [ ! "$1" = "--hestia" ] || [ ! "$1" = "--nginx" ] || [ ! "$1" = "--php" ];  then
   echo "(!) Invalid compilation flag specified. Valid flags:"
   echo "--all"
@@ -75,6 +70,11 @@ if [ ! "$1" = "--all" ] || [ ! "$1" = "--hestia" ] || [ ! "$1" = "--nginx" ] ||
   echo "You may also specify --install to install the packages after compilation."
 fi
 
+# If branch was specified at run-time, convert its value to the branch variable
+if [ "$3" ]; then
+    branch=$3
+fi
+
 # Prompt for Git branch to download and build from if not specified at run-time
 if [ ! $3 ]; then
   echo -n "Please enter the name of the branch to build from (e.g. master): "