This repository has been archived on 2019-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
|
function getlatest () {
|
|
if [ -x "$(command -v curl)" ]; then
|
|
curl -s https://api.github.com/repos/"${1}"/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'
|
|
else
|
|
echo "erro" "Could not get latest version of ${1}! curl is not installed!"
|
|
fi
|
|
}
|