fix(mainsail/fluidd): show correct version number in update menu

fixes #350

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
th33xitus
2023-06-07 21:48:17 +02:00
parent 0cd058320f
commit 7df3dd489f
2 changed files with 6 additions and 6 deletions

View File

@@ -334,9 +334,9 @@ function get_local_mainsail_version() {
function get_remote_mainsail_version() {
[[ ! $(dpkg-query -f'${Status}' --show curl 2>/dev/null) = *\ installed ]] && return
local version
version=$(get_mainsail_download_url | rev | cut -d"/" -f2 | rev)
echo "${version}"
local tags
tags=$(curl -s "https://api.github.com/repos/mainsail-crew/mainsail/tags" | grep "name" | cut -d'"' -f4)
echo "${tags}" | head -1
}
function compare_mainsail_versions() {