From 541a6ce02b78fb0f004b4f72200a4450ffa28f8f Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 7 Sep 2022 13:52:33 +0200 Subject: [PATCH] Replace egrep usage with grep -E grep 3.8 deprecated support for egrep + fgrep, and now prints a warning on stderr: | egrep: warning: egrep is obsolescent; using grep -E | fgrep: warning: fgrep is obsolescent; using grep -F Development time sponsored by Sipwise GmbH --- debian/rules | 2 +- grml-live | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 8787428..504a935 100755 --- a/debian/rules +++ b/debian/rules @@ -13,7 +13,7 @@ override_dh_binary: dh_binary override_dh_install: - egrep -q "GRML_LIVE_VERSION=.*UNRELEASED" grml-live || \ + grep -qE "GRML_LIVE_VERSION=.*UNRELEASED" grml-live || \ (echo "Wrong version in grml-live" && exit 2) # build docs cd docs && $(MAKE) && cd ../ diff --git a/grml-live b/grml-live index a0333e2..0fcbbd3 100755 --- a/grml-live +++ b/grml-live @@ -625,7 +625,7 @@ einfo "Logging actions to logfile $LOGFILE" # dump config variables into file, for script access {{{ CONFIGDUMP=$(mktemp) -set | egrep \ +set | grep -E \ '^(GRML_NAME|RELEASENAME|DATE|VERSION|SUITE|ARCH|DISTRI_NAME|USERNAME|HOSTNAME|APT_PROXY)=' \ > ${CONFIGDUMP} # }}} -- 2.1.4