X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-tools-cn.git;a=blobdiff_plain;f=functions.sh;h=24c7cf9209d9d4ce6ba1aeea720d8475922a72d7;hp=dc2d45c0c793fb589aac9bb0045f6272b60c589a;hb=refs%2Fheads%2Flenny;hpb=0391d17254435cc342c65e2277edb13c7c9cb093 diff --git a/functions.sh b/functions.sh index dc2d45c..24c7cf9 100644 --- a/functions.sh +++ b/functions.sh @@ -328,7 +328,7 @@ cp_mail () { To: root Subject: $pkg$version package install log Date: $(LC_ALL=C /bin/date --rfc-2822) - + Hello! The $pkg package has been successfully installed on your computer. @@ -337,9 +337,11 @@ is included below. ---------- ${CP_NOTICE}----------" - - echo "$CP_NOTICE" | /usr/sbin/sendmail -t -oi & - sleep 1 + + if [ -x /usr/sbin/sendmail ]; then + echo "$CP_NOTICE" | /usr/sbin/sendmail -t -oi & + sleep 1 + fi fi }