Skip to content

Commit 97684f1

Browse files
author
Kristan Kenney
committed
Correct installation flags for hst_autocompile.sh
1 parent f47abd8 commit 97684f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/hst_autocompile.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ for arg; do
6060
esac
6161
done
6262

63-
# If branch was specified at run-time, convert its value to the branch variable
64-
if [ "$3" ]; then
65-
branch=$3
66-
fi
67-
6863
if [ ! "$1" = "--all" ] || [ ! "$1" = "--hestia" ] || [ ! "$1" = "--nginx" ] || [ ! "$1" = "--php" ]; then
6964
echo "(!) Invalid compilation flag specified. Valid flags:"
7065
echo "--all"
@@ -75,6 +70,11 @@ if [ ! "$1" = "--all" ] || [ ! "$1" = "--hestia" ] || [ ! "$1" = "--nginx" ] ||
7570
echo "You may also specify --install to install the packages after compilation."
7671
fi
7772

73+
# If branch was specified at run-time, convert its value to the branch variable
74+
if [ "$3" ]; then
75+
branch=$3
76+
fi
77+
7878
# Prompt for Git branch to download and build from if not specified at run-time
7979
if [ ! $3 ]; then
8080
echo -n "Please enter the name of the branch to build from (e.g. master): "

0 commit comments

Comments
 (0)