mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
nightly/conf/nightly.sendmail: Use mail if mutt is not available
This commit is contained in:
@@ -19,10 +19,14 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
if [ $# -ge 3 ]; then
|
||||
gzip -9 <"$3" >"$3.gz"
|
||||
mutt -s "$1" -a "$3.gz" ${recipients} < "$2"
|
||||
rm -f "$3.gz"
|
||||
if type mutt >/dev/null 2>&1; then
|
||||
if [ $# -ge 3 ]; then
|
||||
gzip -9 <"$3" >"$3.gz"
|
||||
mutt -s "$1" -a "$3.gz" ${recipients} < "$2"
|
||||
rm -f "$3.gz"
|
||||
else
|
||||
mutt -s "$1" ${recipients} < "$2"
|
||||
fi
|
||||
else
|
||||
mutt -s "$1" ${recipients} < "$2"
|
||||
mail -s "$1" ${recipients} < "$2"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user