Improved parsing filename & link for scan results

This commit is contained in:
Thorsten Sommer 2024-06-22 19:23:13 +02:00
parent 1d15c483c3
commit f484d02de4
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

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):