Fix osx grep have no -P flag (#438)

This commit is contained in:
Andrei Kvapil 2024-10-21 11:59:56 +02:00 committed by GitHub
parent a95552103f
commit c0c3e17033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ RED='\033[31m'
RESET='\033[0m'
check-yq-version() {
current_version=$(yq -V | grep -oP 'v[0-9]+\.[0-9]+\.[0-9]+')
current_version=$(yq -V | awk '$(NF-1) == "version" {print $NF}')
if [ -z "$current_version" ]; then
echo "yq is not installed or version cannot be determined."
exit 1