Steps to reproduce
For gallery-dl version as of 1.30.10:
gallery-dl --error-file errors '<ANY_WORKING_URL>' \
|| echo 'fail'
Actual results
If the gallery-dl command from the above steps succeeds, the right operand of the shell operator || is not executed as expected, but the file errors is created empty.
Expected results
It would be nice to postpone creating the errors file and writing errors to it until the first error occurs.