[X2Go-Commits] [nx-libs] 230/429: shellcheck: Fix SC2061 issue

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 8ce12d613a570710b9e1c7fa179b6d0cafd9de0f
Author: Mario Trangoni <mjtrangoni at gmail.com>
Date:   Sun Jan 31 15:07:18 2021 +0100

    shellcheck: Fix SC2061 issue
    
    $ find . -name "*.sh" | xargs shellcheck -i SC2061
    
    In ./roll-tarballs.sh line 159:
        find nx-X11/extras/Mesa/ -name Makefile.* | while read -r file; do rm "$file"; done
                                       ^--------^ SC2061: Quote the parameter to -name so the shell won't interpret it.
    
    For more information:
      https://www.shellcheck.net/wiki/SC2061 -- Quote the parameter to -name so t...
    
    Signed-off-by: Mario Trangoni <mjtrangoni at gmail.com>
---
 roll-tarballs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roll-tarballs.sh b/roll-tarballs.sh
index 47b503a71..c9af13102 100755
--- a/roll-tarballs.sh
+++ b/roll-tarballs.sh
@@ -156,7 +156,7 @@ if [ "x$MODE" = "xfull" ]; then
     rm -f  "nx-X11/extras/Mesa/src/mesa/main/"{mesa.def,Imakefile,vsnprintf.c}
 
     find nx-X11/extras/Mesa/ -name Makefile | while read -r file; do rm "$file"; done
-    find nx-X11/extras/Mesa/ -name Makefile.* | while read -r file; do rm "$file"; done
+    find nx-X11/extras/Mesa/ -name 'Makefile.*' | while read -r file; do rm "$file"; done
     find nx-X11/extras/Mesa/ -name descrip.mms | while read -r file; do rm "$file"; done
 
     # this is for 3.5.0.x only...

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