Closed GorycH79 closed 1 year ago
I suggest changing the functions of getting versions like this:
function set_available_version() { available_version=$(jq -r '.nas["'"$json_dsm_pattern"'"].version' <<< "$downloads_json" | grep -oP '^.+?(?=-)' | cut -d "." -f 1,2,3,4) echo "Available version: $available_version" }
function set_installed_version() { installed_version=$(synopkg version "$pms_package_name" | grep -oP '^.+?(?=-)' | cut -d "." -f 1,2,3,4) echo "Installed version: $installed_version" }
I believe this is fixed in 436280fa6ff078122f68363294b6be88985541ff. Please let me know if the problem persists!
This fix has been addressed in the latest release https://github.com/cowboy/synology-update-plex/releases
Script output
NAS Model
DS1515+
DSM Version
7
Additional context
Before update version of PLEX in DSM was 1.24.4.5081-7000 After autoupdate version of PLEX in DSM is 1.24.4.5081-7000
We have cyclic update. Maybe it's not worth to check the version of PLEX after the '-'symbol?