From 7ff3703326e04ae84e8700be41d36d3516f43f6d Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Wed, 16 Apr 2025 14:44:26 -0500 Subject: [PATCH] Fix attachment flag formatting in email sending logic for correct attachment handling --- runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtest.sh b/runtest.sh index aaf3ce0..6a0f499 100755 --- a/runtest.sh +++ b/runtest.sh @@ -150,7 +150,7 @@ fi if [ ${#ATTACHMENTS[@]} -eq 0 ]; then echo "[!] No files to attach. Email not sent." else - echo "$EMAIL_BODY" | mutt -s "$EMAIL_SUBJECT" "${ATTACHMENTS[@]/#/-a }" -- "$RECIPIENT" + echo "$EMAIL_BODY" | mutt -s "$EMAIL_SUBJECT" "${ATTACHMENTS[@]/#/ -a}" -- "$RECIPIENT" fi echo "[+] Email sent to $RECIPIENT with attachments: ${ATTACHMENTS[*]}"