Skip to content

Commit

Permalink
01-main...jc: anchor URL regex on right too
Browse files Browse the repository at this point in the history
  • Loading branch information
mralusw authored and philclifford committed Nov 11, 2023
1 parent a40c240 commit ebf0301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 01-main/packages/jc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ DEFVER=1
ARCHS_SUPPORTED='amd64'
get_github_releases 'kellyjonbrazil/jc' 'latest'
if [ "${ACTION}" != prettylist ]; then
URL=$(grep -m1 -o "\"browser_download_url\":[[:space:]]*\"[^\"]*${HOST_ARCH}[^\"]*\.deb" "${CACHE_FILE}")
URL=${URL##*\"}
URL=$(grep -m1 -o "\"browser_download_url\":[[:space:]]*\"[^\"]*${HOST_ARCH}[^\"]*\.deb\"" "${CACHE_FILE}")
URL=${URL%\"}; URL=${URL##*\"}
VERSION_PUBLISHED=${URL##*/download/v}
VERSION_PUBLISHED=${VERSION_PUBLISHED%%/*}
fi
Expand Down

0 comments on commit ebf0301

Please # to comment.