Fix osx grep have no -P flag (#438)
This commit is contained in:
parent
a95552103f
commit
c0c3e17033
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue