summaryrefslogtreecommitdiffstats
path: root/debian/10mail
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:14:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:14:48 +0000
commit9021c15fadb3638b6d118fdba8cf19cc4ca9e063 (patch)
tree3971b5280a3877d4d1c9d1b729f860c6c4752d54 /debian/10mail
parentAdding upstream version 7.4. (diff)
downloadsmartmontools-debian.tar.xz
smartmontools-debian.zip
Adding debian version 7.4-2.debian/7.4-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/10mail13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/10mail b/debian/10mail
new file mode 100644
index 0000000..f921a33
--- /dev/null
+++ b/debian/10mail
@@ -0,0 +1,13 @@
+#!/bin/bash -e
+
+# Send mail if /usr/bin/mail exists
+if ! [ -x /usr/bin/mail ]; then
+ echo "Your system does not have /usr/bin/mail. Install the mailx or mailutils package"
+ exit 1
+fi
+
+input=$1
+shift
+
+/usr/bin/mail "$@" < $input
+