Improved parsing filename & link for scan results

This commit is contained in:
tsommer committed 2024-06-22 19:23:13 +02:00
1 parent 1d15c483c3
commit f484d02de4
1 file changed
+3 -3
+3 -3
View File
@@ -808,9 +808,9 @@ jobs:
# Append each file and link to the changelog:
for item in "${analysis_array[@]}"; do
filename=$(echo $item | cut -d'=' -f1)
link=$(echo $item | cut -d'=' -f2)
changelog="$changelog\n- [$(basename $filename)]($link)"
filename=$(echo $item | cut -d'=' -f1 | xargs)
link=$(echo $item | cut -d'=' -f2 | xargs)
changelog="$changelog\n- [$(basename "$filename")]($link)"
done
# Export the modified changelog (using HEREDOC syntax for multi-line support):