From 3fc191102b662c13566f0aaba540ab7d08033f0d Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Fri, 21 Apr 2023 13:16:29 -0400 Subject: [PATCH] Work around gitlab api nonsense direct_asset_url is no longer a direct url --- lug-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index d7d703e..4e95ded 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1389,7 +1389,7 @@ download_install() { fi # Get the selected download url - download_url="$(curl -s "$contributor_url$query_string" | grep -Eo "\"$search_key\": ?\"[^\"]+$download_file\"" | cut -d '"' -f4)" + download_url="$(curl -s "$contributor_url$query_string" | grep -Eo "\"$search_key\": ?\"[^\"]+$download_file\"" | cut -d '"' -f4 | sed 's|/-/blob/|/-/raw/|')" # Sanity check if [ -z "$download_url" ]; then