Commit e70e25e
authored
devbox: handle paths with spaces (#221)
## Summary
The current command for nix-env starts as a string and then gets split
by spaces to form the args slice. This doesn't handle paths with spaces,
so change it to just create a slice directly instead.
Also improve the error message when `nix-env` fails to give more info
instead of just the exit code.
Finally, unexport `ApplyDevNixDerivation` because isn't used anywhere
else.
## How was it tested?
Ran `devbox shell` from a directory with spaces in the name.1 parent 93d61d0 commit e70e25e
1 file changed
+21
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
383 | 382 | | |
384 | 383 | | |
385 | 384 | | |
386 | 385 | | |
387 | 386 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
392 | 391 | | |
393 | | - | |
394 | | - | |
395 | 392 | | |
396 | | - | |
397 | | - | |
398 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
399 | 405 | | |
400 | 406 | | |
401 | 407 | | |
| |||
0 commit comments