Replaced usage outdate egrep to grep

Change-Id: I03da75b899b5da03c22ad3195a61343386ef9585
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
This commit is contained in:
Ivan Anfimov
2025-07-16 22:06:05 +00:00
parent 56100a6113
commit 4bc50f7a2d
2 changed files with 2 additions and 2 deletions

View File

@@ -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 }}'

View File

@@ -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