aboutsummaryrefslogtreecommitdiff
path: root/bin/status
diff options
context:
space:
mode:
Diffstat (limited to 'bin/status')
-rwxr-xr-xbin/status2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/status b/bin/status
index 9a71d1a..2c0bf4c 100755
--- a/bin/status
+++ b/bin/status
@@ -7,7 +7,7 @@ cpu() {
}
mail() {
- NEWMAIL=$(ls -s ~/mail/*/INBOX/new | awk '{if ($1 == "total") { sum += $2} }; END {print sum}')
+ NEWMAIL=$(expr $(ls -1 ~/mail/*/INBOX/new | wc -l) - 7)
if [ "${NEWMAIL%% *}" -eq 0 ]; then
printf " (%s)" "${NEWMAIL%% *}"