Skip to content

Commit

Permalink
escape ? character
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbN committed Oct 3, 2024
1 parent ca2bbfd commit fe0ef22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ download_favicon_files() {
local urls=$(curl -s "${TP_SCHEME}://${TP_DOMAIN}/themes.json" | jq -r ".addons.sonarr[\"$addon\"].files[]?")
for url in $urls; do
# Remove the query parameters from the URL
clean_url=$(echo "$url" | sed 's/\?.*//')
clean_url=$(echo "$url" | sed 's/\?.*$//')
wget -P "${APP_ICON_FILEPATH}" "${clean_url}"
printf 'Downloaded favicon: %s\n' "${clean_url}"
done
Expand Down

0 comments on commit fe0ef22

Please sign in to comment.