1 2 3 4 5 6 7 8
#!/bin/bash curl "https://github.com/brndnmtthws/conky/releases" 2> /dev/null | \ tr "\"" "\n" | \ grep "^/brndnmtthws/conky/archive/v[0-9.-]*\.tar\.gz\$" | \ sed "s|^/brndnmtthws/conky/archive/v\(.*\)\.tar\.gz\$|\1|" | \ sort -V | \ tail -n1