mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-10-02 07:12:29 +00:00
Fix init_module and default module
This commit is contained in:
@@ -323,11 +323,14 @@ init_module () {
|
|||||||
local module="$2"
|
local module="$2"
|
||||||
read_config "$module"
|
read_config "$module"
|
||||||
module=${module^^}
|
module=${module^^}
|
||||||
if (( $opt == 1 )); then
|
if (( $opt == 0 )); then
|
||||||
if [[ ${!module} == false ]]; then exit_module "execute"; fi
|
if [[ ${!module} == false ]]; then
|
||||||
|
read_config "default"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [[ ${!module} == false ]]; then
|
||||||
|
exit_module "execute"
|
||||||
fi
|
fi
|
||||||
if compare_version "$LOVE_VERSION" ">" "$VERSION"; then
|
|
||||||
echo "LÖVE $LOVE_VERSION is out ! Your project uses LÖVE ${VERSION}."
|
|
||||||
fi
|
fi
|
||||||
gen_version $VERSION
|
gen_version $VERSION
|
||||||
unset VERSION
|
unset VERSION
|
||||||
@@ -426,13 +429,17 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
(
|
(
|
||||||
(init_module "LÖVE" "love" "L")
|
init_module "LÖVE" "love" "L"
|
||||||
if [[ $? -eq 0 || $DEFAULT_MODULE == true ]]; then
|
create_love_file 9
|
||||||
|
exit_module
|
||||||
|
)
|
||||||
|
if [[ $? -ne 0 && $DEFAULT_MODULE == true ]]; then
|
||||||
|
(
|
||||||
init_module "LÖVE" "default"
|
init_module "LÖVE" "default"
|
||||||
create_love_file 9
|
create_love_file 9
|
||||||
exit_module
|
exit_module
|
||||||
fi
|
|
||||||
)
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user