blob: 4bd55e3ba1b928ec045c6fe5a83a77519bca69a9 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
curl 'https://bitbucket.org/rekkanoryo/purple-plugin-pack/downloads/' 2> /dev/null | \
tr ' <>' '\n' | \
grep '^href="/rekkanoryo/purple-plugin-pack/downloads/purple-plugin-pack-[0-9.]\+\.tar\.bz2"$' | \
sed 's|^href="/rekkanoryo/purple-plugin-pack/downloads/purple-plugin-pack-\([0-9.]\+\)\.tar\.bz2"$|\1|' | \
sort -V | \
tail -n1
|