From: Marius Mauch Date: Wed, 19 Jul 2006 10:26:20 +0000 (-0000) Subject: add notice about remaining updates on exit X-Git-Tag: v2.1.1~195 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a823d16b3351d535b65b9c85cec7a3b419bc23ce;p=portage.git add notice about remaining updates on exit svn path=/main/trunk/; revision=3931 --- diff --git a/bin/etc-update b/bin/etc-update index a1f81342e..3cedc660b 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -376,6 +376,12 @@ function die() { trap "" TERM trap "" KILL echo "Exiting: ${1}" + + if [ ${2} -eq 0 ]; then + scan > /dev/null + [ ${count} -gt 0 ] && echo "NOTE: ${count} updates remaining" + fi + rm -rf ${TMP} exit ${2} } @@ -387,7 +393,7 @@ scriptname=$(basename $0) trap die term -[ -w /etc ] || die "Need root priviledges for write access to /etc" +[ -w /etc ] || die "Need root priviledges for write access to /etc" 1 export PORTAGE_TMPDIR=$(/usr/lib/portage/bin/portageq envvar PORTAGE_TMPDIR)