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:
parent
c4d5a7dd87
commit
bab75661c1
1 changed files with 2 additions and 2 deletions
|
@ -154,13 +154,13 @@ then
|
|||
while [ "$last_version" != "$current_version" ]
|
||||
do
|
||||
|
||||
ynh_print_info --message="Upgrade to Nextcloud $last_version"
|
||||
|
||||
next_major_version="$(( $current_major_version + 1 ))"
|
||||
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
|
||||
source_id="main"
|
||||
else
|
||||
ynh_print_info --message="Upgrading to Nextcloud $next_major_version"
|
||||
source_id="$next_major_version"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue