I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …
![post image](/images/blog/linux-1_hu928a111b75a731678aae189a5163bdac_17752_eedd5336be16616ed0b2dcda96bc315e.webp)
Oneliner to compare software versions
export _tags=$(git tag --list | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
export _current=$(curl -s https://api.github.com/repos/hashicorp/vault/releases | jq -r '[.[] | select(.prerelease != true) | .name ] | first' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
[[ $_tags =~ $_current ]] && echo "match" || echo "no match"
Links:
202403041403