andreafabrizi / Dropbox-Uploader

Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service.
https://www.andreafabrizi.it/2016/01/01/Dropbox-Uploader/
GNU General Public License v3.0
6.56k stars 1.08k forks source link

The dropbox uploader does not return exit code 1 on failure #547

Open zoszkar opened 3 years ago

zoszkar commented 3 years ago

Hi, I'm writes an automatic backup script that uses the dropbox-uploader script. I want to send an email if the backup fails (for example: if lost the internet connection etc). In my script I ckeck the exit code of dropbox-uploader.sh, which returns 0 if successful (exit code 0) otherwise stops and no longer returns to my script. So it doesn't return 1.

arafatx commented 3 years ago

I tested the script returns exit code perfectly, Or maybe you can show a piece of code how you actually handle this.