Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX eclair-cli error code in case of HTTP problem
Last command of eclair-cli is a curl piped to jq. In case of an error with the curl command (for instance, eclair service is not running) the error code was swallowed by the pipe wich will return the exit code of the last command of the pipe (here, jq). Setting `pipefail` ensures that the error code of curl is preserve in case of HTTP issue. This can come handy, for instance, to check that eclair is not ok: ``` if eclair-cli getinfo then echo eclair is answering else echo problem communicating with eclair fi ```
- Loading branch information