Fix email attachment syntax in runtest.sh

This commit is contained in:
Yaro Kasear 2025-04-28 14:14:59 -05:00
parent e05c3fba99
commit fc162eb90a

View file

@ -193,7 +193,7 @@ if [ ${#ATTACHMENTS[@]} -eq 0 ]; then
warn "No files to attach. Email not sent."
else
for file in "${ATTACHMENTS[@]}"; do log "Attaching: $file"; done
echo "$EMAIL_BODY" | mutt -s "Test ${BOOT_ID} Complete" "${ATTACHMENTS[@]/#/-a }" -- "$RECIPIENT"
echo "$EMAIL_BODY" | mutt -s "Test ${BOOT_ID} Complete" -a "${ATTACHMENTS[@]}" -- "$RECIPIENT"
log "Email sent to $RECIPIENT with attachments."
fi