X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-tools-cn.git;a=blobdiff_plain;f=functions.sh;h=24c7cf9209d9d4ce6ba1aeea720d8475922a72d7;hp=38cd05fbb10ee1b902de7d0c437ccd0c1cd01f38;hb=refs%2Fheads%2Flenny;hpb=07f3e2984f79dfb911e3b0364dd10c7127fd705e diff --git a/functions.sh b/functions.sh index 38cd05f..24c7cf9 100644 --- a/functions.sh +++ b/functions.sh @@ -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 }