mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 11:04:29 +05:00
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:
@@ -327,9 +327,9 @@ function get_local_fluidd_version() {
|
|||||||
function get_remote_fluidd_version() {
|
function get_remote_fluidd_version() {
|
||||||
[[ ! $(dpkg-query -f'${Status}' --show curl 2>/dev/null) = *\ installed ]] && return
|
[[ ! $(dpkg-query -f'${Status}' --show curl 2>/dev/null) = *\ installed ]] && return
|
||||||
|
|
||||||
local version
|
local tags
|
||||||
version=$(get_fluidd_download_url | rev | cut -d"/" -f2 | rev)
|
tags=$(curl -s "https://api.github.com/repos/fluidd-core/fluidd/tags" | grep "name" | cut -d'"' -f4)
|
||||||
echo "${version}"
|
echo "${tags}" | head -1
|
||||||
}
|
}
|
||||||
|
|
||||||
function compare_fluidd_versions() {
|
function compare_fluidd_versions() {
|
||||||
|
|||||||
@@ -334,9 +334,9 @@ function get_local_mainsail_version() {
|
|||||||
function get_remote_mainsail_version() {
|
function get_remote_mainsail_version() {
|
||||||
[[ ! $(dpkg-query -f'${Status}' --show curl 2>/dev/null) = *\ installed ]] && return
|
[[ ! $(dpkg-query -f'${Status}' --show curl 2>/dev/null) = *\ installed ]] && return
|
||||||
|
|
||||||
local version
|
local tags
|
||||||
version=$(get_mainsail_download_url | rev | cut -d"/" -f2 | rev)
|
tags=$(curl -s "https://api.github.com/repos/mainsail-crew/mainsail/tags" | grep "name" | cut -d'"' -f4)
|
||||||
echo "${version}"
|
echo "${tags}" | head -1
|
||||||
}
|
}
|
||||||
|
|
||||||
function compare_mainsail_versions() {
|
function compare_mainsail_versions() {
|
||||||
|
|||||||
Reference in New Issue
Block a user