Commit 32bc524
authored
hack: replace fragile awk pipeline with 'go env GOARCH' in install.sh (#9000)
hack: use 'go env GOARCH' instead of fragile awk pipeline in install.sh
The previous 'go env | grep GOARCH | awk -F\'' pipeline is fragile:
it depends on the specific output format of 'go env' which can vary.
'go env GOARCH' is the canonical, documented way to read a single
Go environment variable and is simpler and more reliable.1 parent b3edbad commit 32bc524
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments