Commit b69788a
committed
Fix unquoted curl options in curlw() to handle paths with spaces
Fix #454: Convert TLS_OPT and NETRC_OPT from strings to arrays so they
are properly quoted when passed to curl. Paths with spaces in
TFENV_NETRC_PATH would previously be word-split.
Uses ${arr[@]+"${arr[@]}"} pattern for safe empty-array expansion on
bash versions older than 4.4 (notably macOS default bash 3.2).1 parent fa8d238 commit b69788a
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
| 80 | + | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
0 commit comments