Przeglądaj źródła

Correct installation flags for hst_autocompile.sh

Kristan Kenney 7 lat temu
rodzic
commit
97684f1a91
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      src/hst_autocompile.sh

+ 5 - 5
src/hst_autocompile.sh

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