[X2Go-Commits] [nx-libs] 228/429: shellcheck: Fix SC2196 issues

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:36:40 CEST 2021


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit afe0c1473a09120bcd3aa9c6bd853529df4d896f
Author: Mario Trangoni <mjtrangoni at gmail.com>
Date:   Sun Jan 31 14:59:40 2021 +0100

    shellcheck: Fix SC2196 issues
    
    See,
    
    $ find . -name "*.sh" | xargs shellcheck -i SC2196
    
    In ./roll-tarballs.sh line 163:
        sort "debian/patches/series" | grep -v '^#' | egrep "([0-9]+(_|-).*\.(full|full\+lite)\.patch)" | while read -r file
                                                      ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.
    
    In ./roll-tarballs.sh line 200:
        sort "debian/patches/series" | grep -v '^#' | egrep "([0-9]+(_|-).*\.full\+lite\.patch)" | while read -r file
                                                      ^---^ SC2196: egrep is non-standard and deprecated. Use grep -E instead.
    
    For more information:
      https://www.shellcheck.net/wiki/SC2196 -- egrep is non-standard and depreca...
    
    Signed-off-by: Mario Trangoni <mjtrangoni at gmail.com>
---
 roll-tarballs.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roll-tarballs.sh b/roll-tarballs.sh
index 1a5fac626..47b503a71 100755
--- a/roll-tarballs.sh
+++ b/roll-tarballs.sh
@@ -160,7 +160,7 @@ if [ "x$MODE" = "xfull" ]; then
     find nx-X11/extras/Mesa/ -name descrip.mms | while read -r file; do rm "$file"; done
 
     # this is for 3.5.0.x only...
-    sort "debian/patches/series" | grep -v '^#' | egrep "([0-9]+(_|-).*\.(full|full\+lite)\.patch)" | while read -r file
+    sort "debian/patches/series" | grep -v '^#' | grep -E "([0-9]+(_|-).*\.(full|full\+lite)\.patch)" | while read -r file
     do
         cp -v "debian/patches/$file" "doc/applied-patches/"
         echo "${file##*/}" >> "doc/applied-patches/series"
@@ -197,7 +197,7 @@ else
     mv LICENSE.nxcomp LICENSE
 
     # this is for 3.5.0.x only...
-    sort "debian/patches/series" | grep -v '^#' | egrep "([0-9]+(_|-).*\.full\+lite\.patch)" | while read -r file
+    sort "debian/patches/series" | grep -v '^#' | grep -E "([0-9]+(_|-).*\.full\+lite\.patch)" | while read -r file
     do
         cp -v "debian/patches/$file" "doc/applied-patches/"
         echo "${file##*/}" >> "doc/applied-patches/series"

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list