Commit bff4553
committed
Fix #374: Route tfenv log output to stderr in terraform shim context
When tfenv auto-installs via the terraform shim (bin/terraform), info
and warn messages were sent to stdout, mixing with terraform output.
This broke piped commands like: terraform version -json | jq
Set TFENV_SHIM_MODE=1 in bin/terraform so bashlog routes info/warn
to stderr in that context. Direct tfenv commands (tfenv install, etc.)
are unaffected — their info output remains on stdout.1 parent a3c943e commit bff4553
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| |||
0 commit comments