summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-15 08:29:23 +0200
committerErich Eckner <git@eckner.net>2019-10-15 08:29:23 +0200
commit36f2215c4b840831052b37b647be9e4632bb69d2 (patch)
treeeffb66c43fed319d68436ffefdd2f7e48379bc3d /checkVersions
parentdea90a5ba8c4b843b080295c0fbc2c0ad93f03e4 (diff)
downloadarchlinuxewe.git.save-36f2215c4b840831052b37b647be9e4632bb69d2.tar.xz
checkVersions: enhance bitbucket parsing
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions17
1 files changed, 11 insertions, 6 deletions
diff --git a/checkVersions b/checkVersions
index 40394c87..17432f03 100755
--- a/checkVersions
+++ b/checkVersions
@@ -787,19 +787,24 @@ then
then
srcPreNam="$(
echo "${src}" | \
- sed 's|^.*/\([^/0-9]\+_\)[0-9][^/]\+$|\1|'
+ sed 's|^.*/\([^/0-9]\+[-_]\)[0-9][^/]\+$|\1|'
)"
srcEndg="$(
echo "${src}" | \
- sed 's|^.*\(\.tar[^/]*\)$|\1|' | \
- sed 's|\.|\\.|g'
+ sed '
+ s|^.*\(\.tar[^/]*\)$|\1|
+ s|\.|\\.|g
+ '
)"
remVer="$(
curl_it "${src%/get/*}/downloads/?tab=tags" | \
tr '"' '\n' | \
- grep "${srcEndg}\$" | \
- sed "s|^.*/${srcPreNam}\(.*\)${srcEndg}\$|\1|" | \
- tr '_' '.' | \
+ sed '
+ s|^.*/'"${srcPreNam}"'\(.*\)'"${srcEndg}"'$|\1|
+ t
+ d
+ ' | \
+ tr -- '-_' '.' | \
latest_version
)"
elif echo "${src}" | \