diff --git a/scripts/upgrade b/scripts/upgrade index f5e4155..73650a3 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -11,8 +11,8 @@ source /usr/share/yunohost/helpers upgrade_type=$(ynh_check_app_version_changed) -if [ $(ynh_compare_current_package_version --comparison le --version '14.10.8~ynh1') -eq 0 ]; then - ynh_die --mesage='Upgrade from this version is not suppoted. Please backup and restore manually the data after a clean new install' +if ynh_compare_current_package_version --comparison le --version '14.10.8~ynh1'; then + ynh_die --mesage='Upgrade from this version is not supported. Please backup and restore manually the data after a clean new install' fi #=================================================