Conversation

@b0rk the 'unzip' in there reminds me of finding out last year that

zip output.zip foo bar baz

exits with a failure status if _none_ of foo, bar and baz exists – but if just one of them exists, it will print warnings for the rest, carry on, and exit 0 as if there had been no problem!

Turned out a file had been left out of one of my distribution zips for several releases and the warnings had been lost in huge build logs :-(

2
0
0

@b0rk_reruns @airtower Also, set -x

0
0
1
@b0rk_reruns While using set -euo pipefail will make bash a bit saner, real solution is to switch to real programming language. Python is often suitable choice.
1
0
0

@pavel @b0rk_reruns That’s not always a good or sane choice. Bash is highly portable as it exists on nearly all non-windows platforms by default. Not true of Python.

0
0
1