Skip to content

Commit

Permalink
fix jq command
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbN committed Sep 15, 2024
1 parent 47bbcd5 commit 2323cf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fi
# Function to download files for a given addon
download_favicon_files() {
local addon=$1
local urls=$(echo "${TP_SCHEME}://${TP_DOMAIN}/themes.json" | jq -r ".addons.sonarr[\"$addon\"].files[]")
local urls=$(curl -s "${TP_SCHEME}://${TP_DOMAIN}/themes.json" | jq -r ".addons.sonarr[\"$addon\"].files[]?")
for url in $urls; do
wget -P "${APP_ICON_FILEPATH}" "$url"
printf 'Downloaded favicon: %s\n' "$url"
Expand Down

0 comments on commit 2323cf8

Please sign in to comment.