From 03ca53ef154537dcadbdcb2ed4d0233492870e8a Mon Sep 17 00:00:00 2001 From: Ivan Anfimov Date: Wed, 16 Jul 2025 22:11:22 +0000 Subject: [PATCH] Replaced usage outdate egrep to grep Change-Id: I6f520e0f0842dc9065c127478f9412b4148f5de1 Signed-off-by: Ivan Anfimov --- .../playbooks/galera-cluster-rolling-restart.yml | 2 +- scripts/log-collect.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/leap-upgrades/upgrade-utilities-newton/playbooks/galera-cluster-rolling-restart.yml b/leap-upgrades/upgrade-utilities-newton/playbooks/galera-cluster-rolling-restart.yml index fb2f1a14..3a3ad261 100644 --- a/leap-upgrades/upgrade-utilities-newton/playbooks/galera-cluster-rolling-restart.yml +++ b/leap-upgrades/upgrade-utilities-newton/playbooks/galera-cluster-rolling-restart.yml @@ -49,7 +49,7 @@ delay: 10 - name: Check that WSREP is ready and Synced - shell: "/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf extended-status | egrep '(wsrep_local_state_comment)'" + shell: "/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf extended-status | grep -E '(wsrep_local_state_comment)'" register: mysql_ready until: - mysql_ready.rc == 0 diff --git a/scripts/log-collect.sh b/scripts/log-collect.sh index a65c3eeb..50f19d88 100755 --- a/scripts/log-collect.sh +++ b/scripts/log-collect.sh @@ -153,7 +153,7 @@ function find_files { ! -name '*.html' \ ! -name '*.subunit' \ ! -name "*.journal" \ - ! -name 'ansible.sqlite' | egrep -v 'stackviz|ara-report' + ! -name 'ansible.sqlite' | grep -Ev 'stackviz|ara-report' } function rename_files {