diff options
author | Razvan Becheriu <razvan@isc.org> | 2023-05-11 16:45:13 +0200 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2023-05-11 16:45:13 +0200 |
commit | 5ae6b2ce2fc9b2878f9064e3d57e98d0120c359f (patch) | |
tree | f56c9cfddb1180ee802ef687ae8681d58c99b237 /tools | |
parent | [#2827] addressed comments (diff) | |
download | kea-5ae6b2ce2fc9b2878f9064e3d57e98d0120c359f.tar.xz kea-5ae6b2ce2fc9b2878f9064e3d57e98d0120c359f.zip |
[#2786] fixed UTs when backends are disabled
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check-for-json-errors-in-doc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/check-for-json-errors-in-doc.sh b/tools/check-for-json-errors-in-doc.sh index 49f40508c8..0116e752ea 100755 --- a/tools/check-for-json-errors-in-doc.sh +++ b/tools/check-for-json-errors-in-doc.sh @@ -10,7 +10,7 @@ else fi # Get the files. -files=$(find ${files} -type f \( -name '*.rst' -or -name '*.json' \) -and -not -path '/_build/*' -and -not -path '/man/*' | sort) +files=$(find ${files} -type f \( -name '*.rst' -or -name '*.json' \) -and -not -path '*/_build/*' -and -not -path '*/man/*' | sort) work_file=$(mktemp) for file in $files; do json=0 @@ -88,7 +88,7 @@ for file in $files; do fi fi fi - done <<< $(cat $file | sed ':a;N;$!ba;s/,\s*\n\s*\.\.\.//g' | sed 's/\\\"/\\\\\"/g' | sed 's/\\\\,/\\\\\\\\,/g') + done <<< $(cat $file | sed ':a;N;$!ba;s/,\s*\n\s*\.\.\.//g') if [ $comment -eq 0 -a $json -eq 1 ]; then # if the file ended but the parser is processing a json structure cat $work_file | jq . > /dev/null |