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

we don't want to worry about pre/post decrement

This commit is contained in:
Kayou 2024-08-23 09:53:12 +02:00 committed by GitHub
parent d8fefcea6c
commit a483dd7fc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ source_id="main"
if [ "$version_to_follow" == "oldstable" ]; then
last_version=$(ynh_read_manifest --manifest_key="resources.sources.main.url" | grep -o '[0-9][0-9]\.[0-9]\.[0-9]')
last_major_version=${last_version%%.*}
source_id=$((last_major_version--))
last_major_version=$(( $last_major_version - 1 ))
fi
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --source_id="$source_id"