From c092c1f2f3bfeb0afa7323592493f4b28f72d9e0 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 7 Oct 2023 20:27:01 -0400 Subject: [PATCH] Fix for older curl versions Add workaround for gitlab api query string to download urls also --- lug-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index 6ae4127..198112a 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1398,7 +1398,7 @@ download_install() { fi # Get the selected download url - download_url="$(curl -s "$contributor_url$query_string" | grep -Eo "\"$search_key\": ?\"[^\"]+\"" | grep "$download_file" | cut -d '"' -f4 | sed 's|/-/blob/|/-/raw/|')" + download_url="$(curl -s "$contributor_url$query_string" | grep -Eo "\"$search_key\": ?\"[^\"]+\"" | grep "$download_file" | cut -d '"' -f4 | cut -d '?' -f1 | sed 's|/-/blob/|/-/raw/|')" # Sanity check if [ -z "$download_url" ]; then