summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-10-19 22:05:45 +0200
committerErich Eckner <git@eckner.net>2016-10-19 22:05:45 +0200
commitcda6fd1a8368bdde2ed371f735553d7c12c1c591 (patch)
tree93aee2d059d36996e7260e23dffcf95cefdfc581 /checkVersions
parent9f1c65aac7ea09ecb71df962e36d732e0b2c846f (diff)
downloadarchlinuxewe-cda6fd1a8368bdde2ed371f735553d7c12c1c591.tar.xz
checkVersions kann jetzt dropbox wirklich(er)
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions9
1 files changed, 4 insertions, 5 deletions
diff --git a/checkVersions b/checkVersions
index a134f089f..9d1aa6bd3 100755
--- a/checkVersions
+++ b/checkVersions
@@ -108,11 +108,10 @@ then
elif [ "${pkgname}" == "dropbox" ]
then
remVer="$(
- curl "https://www.dropbox.com/release_notes" 2> /dev/null | \
- tr '\n/"' ' \n\n' | \
- grep -- '-Stable-Build-[0-9-]\+$' | \
- sed 's|^.*-Stable-Build-\([0-9-]\+\)$|\1|' | \
- tr '-' '.' | \
+ curl "https://www.dropbox.com/release_notes/rss.xml" 2> /dev/null | \
+ sed 's|</\?title>|\n|g' | \
+ grep '^[^<>]*New Stable Build: [0-9.-]\+$' | \
+ sed 's|^[^<>]*New Stable Build: \([0-9.-]\+\)$|\1|' | \
sort -V | \
tail -n1
)"