mirror of
https://github.com/ACINQ/eclair.git
synced 2025-03-14 03:48:13 +01:00
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 ``` |
||
---|---|---|
.. | ||
src | ||
eclair-cli | ||
pom.xml |