Stop if there is no main.lua file

This commit is contained in:
Antonin Décimo
2015-06-26 16:25:53 +02:00
parent 55e7685fa1
commit b968ddbc82

View File

@@ -416,6 +416,11 @@ if [[ $INSTALLED == false && $EMBEDDED == false ]]; then
exit_module "undef" "love-release has not been installed, and is not embedded into one script." exit_module "undef" "love-release has not been installed, and is not embedded into one script."
fi fi
if [[ ! -f "main.lua" ]]; then
>&2 echo "No main.lua file was found."
exit_module 1
fi
if [[ $EMBEDDED == true ]]; then if [[ $EMBEDDED == true ]]; then
: # include_scripts_here : # include_scripts_here
elif [[ $INSTALLED == true ]]; then elif [[ $INSTALLED == true ]]; then