mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Use path join to join path parts (#1097)
Use system specific path separator instead of always `/` leading to a path with mixed separators on Windows.
This commit is contained in:
parent
4f54b1ab9a
commit
0b4a1a62a0
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ $env.config = ($env.config | upsert hooks.env_change.PWD {
|
||||||
code: {
|
code: {
|
||||||
$env.PATH = (
|
$env.PATH = (
|
||||||
$env.PATH
|
$env.PATH
|
||||||
| prepend ($env.PWD | path join 'target/debug')
|
| prepend ($env.PWD | path join 'target' 'debug')
|
||||||
| prepend ($env.PWD | path join 'target/release')
|
| prepend ($env.PWD | path join 'target' 'release')
|
||||||
| uniq
|
| uniq
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue