Commit fbc90fb
committed
enable retries by using pipefail option in bash
By default shells don't stop on pipe errors (e.g. if the tedge http get command fails), so jq will always control the overall exit code as it is the last process in the pipe.
Using pipefail will ensure that the Execute Command will be retried if the http get command fails for some transient reason (e.g. service is restarting, or the network infrastructure has sporadic issues).
Signed-off-by: reubenmiller <[email protected]>1 parent ee731a8 commit fbc90fb
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments