Commit 1185985
committed
Fix double-quoted trap in tfenv-install to handle paths safely
Fix #455: Replace double-quoted trap string with a cleanup function.
The previous "rm -rf ${download_tmp}" trap expanded the variable at
definition time without quotes, making it vulnerable to word-splitting
if the temp path contained spaces. Using a function reference ensures
the variable is expanded at execution time with proper quoting.1 parent fa8d238 commit 1185985
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
0 commit comments