diff --git a/scripts/fluidd.sh b/scripts/fluidd.sh index 55f2e2e..81f1aa7 100644 --- a/scripts/fluidd.sh +++ b/scripts/fluidd.sh @@ -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) diff --git a/scripts/globals.sh b/scripts/globals.sh index 56b3cd5..5ff9e0c 100644 --- a/scripts/globals.sh +++ b/scripts/globals.sh @@ -42,13 +42,9 @@ function set_globals() { #================= MAINSAIL ===================# MAINSAIL_DIR="${HOME}/mainsail" - MAINSAIL_REPO_API="https://api.github.com/repos/mainsail-crew/mainsail/releases" - MAINSAIL_TAGS="https://api.github.com/repos/mainsail-crew/mainsail/tags" #================== FLUIDD ====================# FLUIDD_DIR="${HOME}/fluidd" - FLUIDD_REPO_API="https://api.github.com/repos/fluidd-core/fluidd/releases" - FLUIDD_TAGS="https://api.github.com/repos/fluidd-core/fluidd/tags" #=============== KLIPPERSCREEN ================# KLIPPERSCREEN_ENV="${HOME}/.KlipperScreen-env" diff --git a/scripts/mainsail.sh b/scripts/mainsail.sh index 578b60b..38fc4d2 100644 --- a/scripts/mainsail.sh +++ b/scripts/mainsail.sh @@ -502,8 +502,10 @@ function ms_theme_delete() { #================================================# function get_mainsail_download_url() { - local tags latest_tag latest_url stable_tag stable_url url - tags=$(curl -s "${MAINSAIL_TAGS}" | grep "name" | cut -d'"' -f4) + local ms_tags tags latest_tag latest_url stable_tag stable_url url + + ms_tags="https://api.github.com/repos/mainsail-crew/mainsail/tags" + tags=$(curl -s "${ms_tags}" | grep "name" | cut -d'"' -f4) ### latest download url including pre-releases (alpha, beta, rc) latest_tag=$(echo "${tags}" | head -1)