diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-07 07:06:43 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-08 16:00:45 -0700 |
commit | 61158de7bb2575cd594472584b7c2b90dd8da8a5 (patch) | |
tree | 8b9683d336f58b3812b576f94bab9936dc36de86 /bin | |
parent | d9bc0f805e84115b940bed234bd182fca4c05b1f (diff) |
fix(status): mail computation
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/status | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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%% *}" |