Skip to content

Commit 4be1f42

Browse files
committed
Use path join to join path parts
Use system specific path separator instead of always `/` leading to a path with mixed separators on Windows.
1 parent c62a46d commit 4be1f42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nu-hooks/nu-hooks/rusty-paths/rusty-paths.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $env.config = ($env.config | update hooks.env_change.PWD {
1616
code: {
1717
$env.PATH = (
1818
$env.PATH
19-
| prepend ($env.PWD | path join 'target/debug')
20-
| prepend ($env.PWD | path join 'target/release')
19+
| prepend ($env.PWD | path join 'target' 'debug')
20+
| prepend ($env.PWD | path join 'target' 'release')
2121
| uniq
2222
)
2323
}

0 commit comments

Comments
 (0)