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