zeek/auxil/zeekctl/testing/Cfg/bin/sendmail__test
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

13 lines
348 B
Bash
Executable File

#! /usr/bin/env bash
#
# This script is a replacement for the "sendmail" command, and is used for
# testing that zeekctl executes sendmail and gives it some message text.
if [ -n "${ZEEKCTL_INSTALL_PREFIX}" ]; then
# Write message text from stdin to a temporary file.
cat - >> ${ZEEKCTL_INSTALL_PREFIX}/sendmail.out
exit $?
fi
exit 1