From 4bc50f7a2d7343b2c69da80dd60d6a4286c4a88b Mon Sep 17 00:00:00 2001 From: Ivan Anfimov Date: Wed, 16 Jul 2025 22:06:05 +0000 Subject: [PATCH] Replaced usage outdate egrep to grep Change-Id: I03da75b899b5da03c22ad3195a61343386ef9585 Signed-off-by: Ivan Anfimov --- playbooks/post-check-metadata-injection.yaml | 2 +- tools/test-setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/post-check-metadata-injection.yaml b/playbooks/post-check-metadata-injection.yaml index 2c273693a5..714988a6ae 100644 --- a/playbooks/post-check-metadata-injection.yaml +++ b/playbooks/post-check-metadata-injection.yaml @@ -19,6 +19,6 @@ glance image-list --property-filter 'glance_devstack_test=doyouseeme?' | grep $image echo "Checking that the cirros image was converted to raw on import..." - glance image-show $image | egrep -e 'disk_format.*raw' + glance image-show $image | grep 'disk_format.*raw' done environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/tools/test-setup.sh b/tools/test-setup.sh index 2d8ed73c10..f980852a86 100755 --- a/tools/test-setup.sh +++ b/tools/test-setup.sh @@ -25,7 +25,7 @@ function set_conf_line { echo '$3' >> $1" } -if $(egrep -q "^.*(centos:centos:|cloudlinux:cloudlinux:|redhat:enterprise_linux:)[78].*$" /etc/*release); then +if $(grep -Eq "^.*(centos:centos:|cloudlinux:cloudlinux:|redhat:enterprise_linux:)[78].*$" /etc/*release); then # mysql needs to be started on centos/rhel sudo systemctl restart mariadb.service