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

[fix] infinite loop on upgrade

This commit is contained in:
ljf 2024-08-22 23:40:33 +02:00
parent 66412c0601
commit a448839b06

View file

@ -176,9 +176,8 @@ then
fi
# While the current version is not the last version, do an upgrade
while [ "$last_version" > "$current_version" ]
while [[ "$last_version" > "$current_version" ]]
do
ynh_print_info --message="last: $last_version | current: $current_version"
next_major_version="$(( $current_major_version + 1 ))"
source_id="$next_major_version"
if [[ "$next_major_version" -ge "$last_major_version" ]]; then