Commit 7f399ce
committed
Skip exec.LookPath if a specific gzip implementation is disabled
Both pigz and igzip can be disabled via the environment variables.
If disabled, calling exec.LookPath and logging "not found" message is,
even in the debug level, doesn't make much sense.1 parent 34378ec commit 7f399ce
1 file changed
Lines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | 306 | | |
313 | 307 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
317 | 313 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
322 | 317 | | |
323 | 318 | | |
324 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
325 | 322 | | |
326 | 323 | | |
327 | 324 | | |
| |||
0 commit comments