fixed show background e-mail notification process

This commit is contained in:
Pavel Muhortov 2023-12-24 17:31:49 +03:00
parent ace5d44cae
commit 54dd284d45

View File

@ -28,7 +28,7 @@ END
fi fi
SESSION=$(ps -ef -u "${USER}" | grep '[s]shd:.*@notty' \ SESSION=$(ps -ef -u "${USER}" | grep '[s]shd:.*@notty' \
| awk '{$2=$3=$4=$6=$7=""; print $0}') | grep -v 'sendmail.py'| awk '{$2=$3=$4=$6=$7=""; print $0}')
if [ -n "${SESSION}" ]; then if [ -n "${SESSION}" ]; then
TXT_MSG=$(cat <<-END TXT_MSG=$(cat <<-END
${TXT_MSG} ${TXT_MSG}