Skip to content

Commit

Permalink
fix(docker-desktop): add head -n 1 to workaround missing LFs in HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa authored and philclifford committed Dec 17, 2024
1 parent aa921a4 commit cec53f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 01-main/packages/docker-desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DEFVER=1
get_website "https://docs.docker.com/desktop/release-notes/"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "amd64\.deb" "${CACHE_FILE}" | grep -m 1 -Eo 'https://[^ >]+' | cut -d'?' -f1 | tr -d '"' )"
VERSION_PUBLISHED=$(grep -E -m 1 -o 'href=#[0-9]+>[^>]*([^<]*)<' "${CACHE_FILE}" | sed -E 's|.*>([^<]+)<.*|\1|')
VERSION_PUBLISHED=$(grep -E -m 1 -o 'href=#[0-9]+>[^>]*([^<]*)<' "${CACHE_FILE}" | head -n 1 | sed -E 's|.*>([^<]+)<.*|\1|')
fi
PRETTY_NAME="Docker Desktop"
WEBSITE="https://www.docker.com/products/docker-desktop/"
Expand Down

0 comments on commit cec53f4

Please # to comment.