From 5103ed7974434a26544ee7ed0d52c84107658221 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 6 Aug 2014 21:43:19 -0400 Subject: [PATCH] do not dump logs on non-interactive logins --- .profile.d/emerge-updates.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5