diff --git a/runtest.sh b/runtest.sh index 97cc441..de18820 100755 --- a/runtest.sh +++ b/runtest.sh @@ -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