Fix email attachment syntax in runtest.sh
This commit is contained in:
parent
e05c3fba99
commit
fc162eb90a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue