os/arch (lemonbar): fix mail checker

This commit is contained in:
Henrik Lissner 2017-01-16 22:35:15 -05:00
parent 762e01c66f
commit e9cf653798

View file

@ -14,8 +14,7 @@ get_mail() {
local maildatatmp=/tmp/mail-data-"$1" local maildatatmp=/tmp/mail-data-"$1"
local mailtmp=/tmp/mail-count-"$1" local mailtmp=/tmp/mail-count-"$1"
if true; then if curl -u "$1:$2" --silent https://mail.google.com/mail/feed/atom > "$maildatatmp"; then
# if curl -u "$1:$2" --silent https://mail.google.com/mail/feed/atom > "$maildatatmp"; then
[[ -f "$mailtmp" ]] || echo "0" >"$mailtmp" [[ -f "$mailtmp" ]] || echo "0" >"$mailtmp"
local feed=$(<"$maildatatmp") local feed=$(<"$maildatatmp")