From fc1d790ba9fa0f2ee6be6a23f5b161ba57ad5da4 Mon Sep 17 00:00:00 2001 From: tschmidtb51 <65305130+tschmidtb51@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:28:35 +0100 Subject: [PATCH] CPE tests - addresses parts of oasis-tcs/csaf#710 - backport of 61e78c8 - correct parsing of CPE 2.3 Dictionary (to also capture endings `">` instead of just `"/>`) --- csaf_2.0/test/cpe/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csaf_2.0/test/cpe/run_tests.sh b/csaf_2.0/test/cpe/run_tests.sh index 83233ec12..cb6b0b4e5 100755 --- a/csaf_2.0/test/cpe/run_tests.sh +++ b/csaf_2.0/test/cpe/run_tests.sh @@ -20,7 +20,7 @@ get_dictionary() { prepare_23_dictionary() { # Get CPE 2.3 fields # Correctly decode special characters - grep '$//' \ + grep '$//' \ | sed -e 's/\\&/\\\&/g' \ | sed -e 's/\\"/\\"/g' \ > "$CPE".txt