projects
/
carnet-tools-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Ispravak za cp_mail: pokusava se pozvati sendmail wrapper cak i kad ne
[carnet-tools-cn.git]
/
functions.sh
diff --git
a/functions.sh
b/functions.sh
index
dc2d45c
..
24c7cf9
100644
(file)
--- 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)
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.
Hello!
The $pkg package has been successfully installed on your computer.
@@
-337,9
+337,11
@@
is included below.
----------
${CP_NOTICE}----------"
----------
${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
}
fi
}