calibredb exit codes?
Hi folks!
I'm writing a shell script for some custom imports and it seems like calibredb always returns 0 (success) when I (e.g.) try to add a file that doesn't exist. Is this known behavior? Or does it only return >0 in specific situations?
example:
$ calibredb add /path/to/nonexistent/file.epub
/path/to/nonexistent/file.epub not found
Backing up metadata
Notifying calibre of the change
$ echo $?
0
Thanks!
|