diff options
author | Mario Trangoni <mjtrangoni@gmail.com> | 2021-01-31 14:38:08 +0100 |
---|---|---|
committer | Mario Trangoni <mjtrangoni@gmail.com> | 2021-01-31 14:38:59 +0100 |
commit | 747a337444bbbb61e6956554e33c1387f5f40643 (patch) | |
tree | 4c5325cbd8d76b5a7ab2a9367cc5884197a9bef7 | |
parent | 18aca1f69ce0b305c746b84ff90f8bf5a471ca33 (diff) | |
download | nx-libs-747a337444bbbb61e6956554e33c1387f5f40643.tar.gz nx-libs-747a337444bbbb61e6956554e33c1387f5f40643.tar.bz2 nx-libs-747a337444bbbb61e6956554e33c1387f5f40643.zip |
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@gmail.com>
-rwxr-xr-x | regenerate-symbol-docs.sh | 10 |
1 files 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 |