Fix for older curl versions

Add workaround for gitlab api query string to download urls also
This commit is contained in:
the-sane 2023-10-07 20:27:01 -04:00
parent beabf9c35c
commit c092c1f2f3

View File

@ -1398,7 +1398,7 @@ download_install() {
fi fi
# Get the selected download url # 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 # Sanity check
if [ -z "$download_url" ]; then if [ -z "$download_url" ]; then