Skip to content

Commit

Permalink
mtg-wallpapers: Remove duplicate links
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Nov 20, 2024
1 parent dc5b795 commit f0eb7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtg-wallpapers
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fi
cd "${given_directory}" || exit 1

# Download wallpapers
readonly wallpaper_urls="$(curl --silent 'https://magic.wizards.com/en/news' | grep --extended-regexp "href=\"//.*?${wallpaper_size}.jpg" | sed -E "s/.*href=\"([^\"]*${wallpaper_size}.jpg)\".*/\1/")"
readonly wallpaper_urls="$(curl --silent 'https://magic.wizards.com/en/news' | grep --extended-regexp "href=\"//.*?${wallpaper_size}.jpg" | sed -E "s/.*href=\"([^\"]*${wallpaper_size}.jpg)\".*/\1/" | uniq)"

# Download new wallpapers
for wallpaper_url in ${wallpaper_urls}; do
Expand Down

0 comments on commit f0eb7d0

Please sign in to comment.