Commit 963f1c1
committed
fix: parse json to extract terraform version
Request JSON output when getting the Terraform version to build the
versions.txt file. When using terraform version, and piping the output
to head (to get the first line) and then to awk (to get the version
string), there's a race condition that might cause head to close the
pipe before Terraform flushed its entire output to the pipe, resulting
in a 141 error (141 -128 = 13 -> SIGPIPE).
This change is expected to make the CI workflow more stable.1 parent 30403f6 commit 963f1c1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments