From 94b6581e1c91af51f0e7476c73cacbf9e0f7d9b9 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 10 Sep 2013 21:10:58 -0400 Subject: [PATCH] Corrected screen mail script and removed [currently] unused code Not sure what I was thinking with the first part...clearly I wasn't (indeed, the system I made the initial modification on did not have multiple email addresses). --- .screen/mail | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.screen/mail b/.screen/mail index 3ace8ff..d1492e9 100755 --- a/.screen/mail +++ b/.screen/mail @@ -47,7 +47,7 @@ while [ "$( ps | grep $parent)" ]; do printf "%s", "\005{+ mw}[\005{+b}" } { - total += total + ( $1 - $2 ) + total = ( $1 - $2 ) count += $1 printf "%d ", total } @@ -58,11 +58,6 @@ while [ "$( ps | grep $parent)" ]; do printf "%s%d%s", "\005{+ my}!", count, "\005{-}" printf "\n" - - if ( total > 0 ) - print "mail" > "/tmp/.keyind" - else - print "" > "/tmp/.keyind" }' sleep 30