]> git.wh0rd.org Git - home.git/commitdiff
do not dump logs on non-interactive logins
authorMike Frysinger <vapier@gentoo.org>
Thu, 7 Aug 2014 01:43:19 +0000 (21:43 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 7 Aug 2014 01:43:19 +0000 (21:43 -0400)
.profile.d/emerge-updates.sh

index 068909e32dc42f2bc728bb9c566cf3cc6ce2d6e0..74e3b40987790b5c77ba1b1927417e7f13320cbd 100644 (file)
@@ -1 +1,3 @@
-[ "${TERM}" != "dumb" ] && [ -e /var/log/emerge-updates.log ] && cat /var/log/emerge-updates.log
+if [[ $- == *i* ]] ; then
+       [ "${TERM}" != "dumb" ] && [ -e /var/log/emerge-updates.log ] && cat /var/log/emerge-updates.log
+fi