diff --git a/usr/local/sbin/systemd-email b/usr/local/sbin/systemd-email index 7180509..a7c2ae9 100644 --- a/usr/local/sbin/systemd-email +++ b/usr/local/sbin/systemd-email @@ -2,7 +2,7 @@ # Send email notification from systemd. # Source: https://serverfault.com/questions/876233/how-to-send-an-email-if-a-systemd-service-is-restarted # Source: https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO -# Usage: systemd-email +# Usage: systemd-email # According to @@ -47,11 +47,11 @@ if ! waited_long_enough; then fi -recipinent=$1 +recipient=$1 system_unit=$2 sendmail -t < Subject: [systemd-email] ${system_unit} Content-Transfer-Encoding: 8bit