From: Mike Frysinger Date: Thu, 7 Aug 2014 01:43:19 +0000 (-0400) Subject: do not dump logs on non-interactive logins X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5103ed7974434a26544ee7ed0d52c84107658221;p=home.git do not dump logs on non-interactive logins --- diff --git a/.profile.d/emerge-updates.sh b/.profile.d/emerge-updates.sh index 068909e..74e3b40 100644 --- a/.profile.d/emerge-updates.sh +++ b/.profile.d/emerge-updates.sh @@ -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