From fc162eb90aa14f71d0b719bb90505caf0d2ae9de Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Mon, 28 Apr 2025 14:14:59 -0500 Subject: [PATCH] Fix email attachment syntax in runtest.sh --- runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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