From b968ddbc82cb1a518a9d2230016e5e4fdf0c714d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Fri, 26 Jun 2015 16:25:53 +0200 Subject: [PATCH] Stop if there is no main.lua file --- love-release.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/love-release.sh b/love-release.sh index c653e2a..8c0d326 100755 --- a/love-release.sh +++ b/love-release.sh @@ -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." fi +if [[ ! -f "main.lua" ]]; then + >&2 echo "No main.lua file was found." + exit_module 1 +fi + if [[ $EMBEDDED == true ]]; then : # include_scripts_here elif [[ $INSTALLED == true ]]; then