does curl's --fail  option simplify the error handling here?

I probably should make failb2an's version a  subsitution like &lt;fail2ban-version;&gt';