[X2Go-Commits] [nx-libs] 224/429: shellcheck: Fix some SC2086 issues

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:36:37 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 747a337444bbbb61e6956554e33c1387f5f40643
Author: Mario Trangoni <mjtrangoni at gmail.com>
Date:   Sun Jan 31 14:38:08 2021 +0100

    shellcheck: Fix some SC2086 issues
    
    see,
    $ find . -name "*.sh" | xargs shellcheck -i SC2086
    
    For more information:
      https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
    
    Signed-off-by: Mario Trangoni <mjtrangoni at gmail.com>
---
 regenerate-symbol-docs.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/regenerate-symbol-docs.sh b/regenerate-symbol-docs.sh
index 289effb25..96b23c9d8 100755
--- a/regenerate-symbol-docs.sh
+++ b/regenerate-symbol-docs.sh
@@ -28,7 +28,7 @@ cat "../../../$SYMBOLS_FILE"  | grep -v -E "^#" | while read -r symbol; do
 
 	echo
 	echo "#### $symbol ####"
-	grep -n $symbol *.{c,h} 2>/dev/null
+	grep -n "$symbol" *.{c,h} 2>/dev/null
 
 done > "../../../$DOC_FILE"
 cd - 1>/dev/null
@@ -40,7 +40,7 @@ cat "../../../../../$SYMBOLS_FILE"  | grep -v -E "^#" | while read -r symbol; do
 
 	echo
 	echo "#### $symbol ####"
-	grep -n $symbol *.{c,h} 2>/dev/null
+	grep -n "$symbol" *.{c,h} 2>/dev/null
 
 done > "../../../../../$DOC_FILE"
 cd - 1>/dev/null
@@ -52,7 +52,7 @@ cat "../../../../../../$SYMBOLS_FILE" | grep -v -E "^#" | while read -r symbol;
 
 	echo
 	echo "#### $symbol ####"
-	grep -n $symbol *.{c,h} 2>/dev/null
+	grep -n "$symbol" *.{c,h} 2>/dev/null
 
 done > "../../../../../../$DOC_FILE"
 cd - 1>/dev/null
@@ -69,7 +69,7 @@ cat "../../../../../../$SYMBOLS_FILE" | grep -v -E "^#" | while read -r symbol;
 
 	echo
 	echo "#### $symbol ####"
-	grep -n $symbol *.{c,h} 2>/dev/null
+	grep -n "$symbol" *.{c,h} 2>/dev/null
 
 done > "../../../../../../$DOC_FILE"
 cd - 1>/dev/null
@@ -81,7 +81,7 @@ cat ../../../../../$SYMBOLS_FILE  | grep -v -E "^#" | while read -r symbol; do
 
 	echo
 	echo "#### $symbol ####"
-	grep -n $symbol *.{c,h} 2>/dev/null
+	grep -n "$symbol" *.{c,h} 2>/dev/null
 
 done > "../../../../../$DOC_FILE"
 cd - 1>/dev/null

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