1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Replace str join with str collect (#434)

`str collect` is deprecated.
This commit is contained in:
WindSoilder 2023-04-03 16:07:55 +08:00 committed by GitHub
parent 7bff42fd29
commit 2cc5b58209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ export def-env activate [
$env_dir = $conda_info.root_prefix
}
let old_path = (system-path | str collect (char esep))
let old_path = (system-path | str join (char esep))
let new_path = if (windows?) {
conda-create-path-windows $env_dir
@ -120,7 +120,7 @@ def conda-create-path-windows [env_dir: path] {
let new_path = ([$env_path (system-path)]
| flatten
| str collect (char esep))
| str join (char esep))
{ Path: $new_path }
}
@ -132,7 +132,7 @@ def conda-create-path-unix [env_dir: path] {
let new_path = ([$env_path $env.PATH]
| flatten
| str collect (char esep))
| str join (char esep))
{ PATH: $new_path }
}