GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.6k stars 205 forks source link

Upon successful run gyb outputs a blank line #371

Open laacz opened 2 years ago

laacz commented 2 years ago

I run GYB regularily from the cron. Each time it generates an empty line to the stderr. This causes a regular notification to the email with a lone newline.

Full steps to reproduce the issue:

~/bin/gyb/gyb --email $EMAIL --action backup --search "newer_than:7d" >/dev/null

Expected outcome (what are you trying to do?):

No output being generated, if the command completes successfully.

Actual outcome (what errors or bad behavior do you see instead?):

A newline is printed.