refactor(mainsail/fluidd): move tag urls from globals to respective files

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
th33xitus
2022-12-14 19:40:12 +01:00
parent f70faa52cc
commit 150ef0142f
3 changed files with 8 additions and 8 deletions

View File

@@ -332,8 +332,10 @@ function compare_fluidd_versions() {
#================================================#
function get_fluidd_download_url() {
local tags latest_tag latest_url stable_tag stable_url url
tags=$(curl -s "${FLUIDD_TAGS}" | grep "name" | cut -d'"' -f4)
local fl_tags tags latest_tag latest_url stable_tag stable_url url
fl_tags="https://api.github.com/repos/fluidd-core/fluidd/tags"
tags=$(curl -s "${fl_tags}" | grep "name" | cut -d'"' -f4)
### latest download url including pre-releases (alpha, beta, rc)
latest_tag=$(echo "${tags}" | head -1)