From 3517741eb33546ded316c3b4364fc5d4b919d592 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 12 Nov 2021 00:19:47 +0100 Subject: [PATCH] Fix detection of upgrade to >=1.1 --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8be6827..e8bea36 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -184,7 +184,8 @@ then # Install Composer and Flarum ynh_exec_warn_less ynh_install_composer --phpversion=$phpversion --workdir=$final_path - if [ ynh_compare_current_package_version --comparison lt --version 1.1.0~ynh1 ]; then + if ynh_compare_current_package_version --comparison lt --version 1.1.0~ynh1 + then # Starting 1.0 (implemented for 1.1 in the package), version requirement is "*" for extensions # ... except for flarum/core, but that's handled in the next block. jq '.require | .[] = "*"' $final_path/composer.json