Browse Source

Abort compilation if invalid flags specified

Kristan Kenney 7 years ago
parent
commit
ebc98a4c2e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/hst_autocompile.sh

+ 1 - 0
src/hst_autocompile.sh

@@ -68,6 +68,7 @@ if [ ! "$1" = "--all" ] || [ ! "$1" = "--hestia" ] || [ ! "$1" = "--nginx" ] ||
   echo "--php"
   echo "--php"
   echo ""
   echo ""
   echo "You may also specify --install to install the packages after compilation."
   echo "You may also specify --install to install the packages after compilation."
+  exit 1
 fi
 fi
 
 
 # If branch was specified at run-time, convert its value to the branch variable
 # If branch was specified at run-time, convert its value to the branch variable