From 57a5fc6ebeb916e0b5ec270799e1d26df9133d25 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Thu, 6 Oct 2022 01:56:35 +0100 Subject: [PATCH] fix hugo to reflect changed naming and architecture support --- deb-get | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) mode change 100644 => 100755 deb-get diff --git a/deb-get b/deb-get old mode 100644 new mode 100755 index b38816332..89fc34aa1 --- a/deb-get +++ b/deb-get @@ -918,23 +918,10 @@ function deb_rclone() { } function deb_hugo() { - ARCHS_SUPPORTED="amd64 arm64 armhf i386" + ARCHS_SUPPORTED="amd64 arm64" get_github_releases "https://api.github.com/repos/gohugoio/hugo/releases/latest" if [ "${ACTION}" != "prettylist" ]; then - case ${HOST_ARCH} in - amd64) - URL=$(grep "browser_download_url.*64bit\.deb\"" "${CACHE_DIR}/${APP}.json" | grep -v extended | head -n1 | cut -d'"' -f4) - ;; - arm64) - URL=$(grep "browser_download_url.*ARM64\.deb\"" "${CACHE_DIR}/${APP}.json" | head -n1 | cut -d'"' -f4) - ;; - armhf) - URL=$(grep "browser_download_url.*ARM\.deb\"" "${CACHE_DIR}/${APP}.json" | head -n1 | cut -d'"' -f4) - ;; - i386) - URL=$(grep "browser_download_url.*32bit\.deb\"" "${CACHE_DIR}/${APP}.json" | head -n1 | cut -d'"' -f4) - ;; - esac + URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_DIR}/${APP}.json" | grep -v extended | head -n1 | cut -d'"' -f4) VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)" fi PRETTY_NAME="Hugo" @@ -3035,4 +3022,3 @@ esac if [[ $PACKAGE_INSTALLATION_COUNT -lt $PACKAGE_INSTALLATION_TRIES ]]; then exit 1 fi -