iimage: replace egrep usage with grep -E
authorMichael Prokop <mika@grml.org>
Wed, 7 Sep 2022 11:56:57 +0000 (13:56 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 7 Sep 2022 11:56:57 +0000 (13:56 +0200)
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

usr_bin/iimage

index 9b210d0..b2f81f7 100755 (executable)
@@ -1004,7 +1004,7 @@ function update_description_names() {
    find_all_images
    for i in $ALL_IMAGES ; do
 
-      if ! egrep "$i=" ./description >/dev/null ; then
+      if ! grep -E "$i=" ./description >/dev/null ; then
          echo "$i=`description $i`" >> ./description
       fi