1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Fix incorrect 'upgrade to nextcloud X.Y' message

This commit is contained in:
Alexandre Aubin 2024-01-25 22:13:39 +01:00
parent c4d5a7dd87
commit bab75661c1

View file

@ -154,13 +154,13 @@ then
while [ "$last_version" != "$current_version" ] while [ "$last_version" != "$current_version" ]
do do
ynh_print_info --message="Upgrade to Nextcloud $last_version"
next_major_version="$(( $current_major_version + 1 ))" next_major_version="$(( $current_major_version + 1 ))"
if [[ "$next_major_version" -ge "$last_major_version" ]]; then if [[ "$next_major_version" -ge "$last_major_version" ]]; then
ynh_print_info --message="Upgrading to Nextcloud $last_version"
cp -a ../sources/patches_last_version/* ../sources/patches cp -a ../sources/patches_last_version/* ../sources/patches
source_id="main" source_id="main"
else else
ynh_print_info --message="Upgrading to Nextcloud $next_major_version"
source_id="$next_major_version" source_id="$next_major_version"
fi fi