Skip to content

Commit 0b4a1a6

Browse files
authored
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.
1 parent 4f54b1a commit 0b4a1a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $env.config = ($env.config | upsert 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)