From 0cbfe45d77e3eb5153e26846e026bdeb93920b17 Mon Sep 17 00:00:00 2001 From: Haroon Khel <34969545+Haroon-Khel@users.noreply.github.com> Date: Wed, 2 Oct 2024 08:18:39 +0800 Subject: [PATCH] Add a third backslash (#3965) --- tooling/strace_analysis.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tooling/strace_analysis.sh b/tooling/strace_analysis.sh index d52e07cf3..5246b4080 100755 --- a/tooling/strace_analysis.sh +++ b/tooling/strace_analysis.sh @@ -258,17 +258,17 @@ processFiles() { case "${os_type}" in "alpine") # Process alpine package query output: "FILE is owned by PACKAGE" - pkg_name="$(echo "$pkg" | sed 's/is owned by//g' | tr -s ' ' | cut -d' ' -f2 | tr -d '\\n\\r')" + pkg_name="$(echo "$pkg" | sed 's/is owned by//g' | tr -s ' ' | cut -d' ' -f2 | tr -d '\\\n\\\r')" pkg_version="$pkg_name" ;; "debian") # Process debian package query output: "PACKAGE: FILE" - pkg_name="$(echo "$pkg" | cut -d":" -f1 | tr -d '\\n\\r')" - pkg_version="$(apt show "$pkg_name" 2>/dev/null | grep Version | cut -d" " -f2 | tr -d '\\n\\r')" + pkg_name="$(echo "$pkg" | cut -d":" -f1 | tr -d '\\\n\\\r')" + pkg_version="$(apt show "$pkg_name" 2>/dev/null | grep Version | cut -d" " -f2 | tr -d '\\\n\\\r')" ;; "centos") # Process centos package query output: "PACKAGE" - pkg_name="$(echo "$pkg" | cut -d" " -f1 | tr -d '\\n\\r')" + pkg_name="$(echo "$pkg" | cut -d" " -f1 | tr -d '\\\n\\\r')" pkg_version="$pkg_name" ;; *)