summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2024-06-17 19:46:54 +0200
committerAndrei Pavel <andrei@isc.org>2024-06-20 17:31:30 +0200
commitf11dd59433928e1f717f8e6ec76f92c19eb0636c (patch)
tree79a82da0d33fbe966dd37595d45cd33c6fab963a
parent[#3287] fix reported shellcheck warnings (diff)
downloadkea-f11dd59433928e1f717f8e6ec76f92c19eb0636c.tar.xz
kea-f11dd59433928e1f717f8e6ec76f92c19eb0636c.zip
[#3287] address review
-rw-r--r--src/bin/shell/tests/tls_ca_process_tests.sh.in4
-rwxr-xr-xtools/check-for-json-errors-in-doc.sh2
-rw-r--r--tools/extract_bnf.sh.in2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/shell/tests/tls_ca_process_tests.sh.in b/src/bin/shell/tests/tls_ca_process_tests.sh.in
index 2ece6c6c61..d72564075a 100644
--- a/src/bin/shell/tests/tls_ca_process_tests.sh.in
+++ b/src/bin/shell/tests/tls_ca_process_tests.sh.in
@@ -152,14 +152,14 @@ list_commands_test() {
# shellcheck disable=SC2086
# SC2086: Double quote to prevent globbing and word splitting.
- # Reason: we spcifically want ${arguments} to split because there may be multiple words in it.
+ # Reason: we specifically want ${arguments} to split because there may be multiple words in it.
tmp="echo | ${shell_bin_path}/${shell_bin} --port 8443 \
${arguments} > ${tmpfile_path}/shell-stdout.txt"
echo "Executing kea-shell ($tmp)"
# shellcheck disable=SC2086
# SC2086: Double quote to prevent globbing and word splitting.
- # Reason: we spcifically want ${arguments} to split because there may be multiple words in it.
+ # Reason: we specifically want ${arguments} to split because there may be multiple words in it.
echo | ${shell_bin_path}/${shell_bin} --port 8443 \
${arguments} > ${tmpfile_path}/shell-stdout.txt
EXIT_CODE=$?
diff --git a/tools/check-for-json-errors-in-doc.sh b/tools/check-for-json-errors-in-doc.sh
index 764827e5c6..42cc54bf19 100755
--- a/tools/check-for-json-errors-in-doc.sh
+++ b/tools/check-for-json-errors-in-doc.sh
@@ -90,7 +90,7 @@ for file in ${files}; do
# 4. replace all '[ <DATA> ]' with '[ "<DATA>" ]' where DATA contains: '-' and 'A-Za-z0-9' and ' '
# 5. replace all ' <DATA>:' with ' "<DATA>":'
# 6. replace all ': <DATA>' with ': "<DATA>"'
- # 7. replace ' ...' with ' "placeholder": "value"
+ # 7. replace ' ...' with ' "placeholder": "value"'
# 8. replace ', ... ' with ' '
# 9. replace ' <DATA>' with ' "placeholder": "value"'
# 10. replace ' <DATA>' with ' "placeholder"'
diff --git a/tools/extract_bnf.sh.in b/tools/extract_bnf.sh.in
index 02c69e3335..96767936a9 100644
--- a/tools/extract_bnf.sh.in
+++ b/tools/extract_bnf.sh.in
@@ -85,7 +85,7 @@ $header
EOF
# shellcheck disable=SC2016
# SC2016: Expressions don't expand in single quotes, use double quotes for that.
- # Reason: we spcifically do not want $0 to expand.
+ # Reason: we specifically do not want $0 to expand.
@AWK@ '/^.+$/ { print " ",$0 }; /^$/ { print } ' $output.2 >> $output.3
cat $output.3
else