mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 15:17:47 +00:00
Add ||
to closure (#447)
Not necessary anymore for the next release, but fixes things for the current one
This commit is contained in:
parent
cc894d2b7a
commit
2d12532495
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ export def-env deactivate [] {
|
||||||
def check-if-env-exists [ env_name: string, conda_info: record ] {
|
def check-if-env-exists [ env_name: string, conda_info: record ] {
|
||||||
let env_dirs = (
|
let env_dirs = (
|
||||||
$conda_info.envs_dirs |
|
$conda_info.envs_dirs |
|
||||||
each { path join $env_name }
|
each { || path join $env_name }
|
||||||
)
|
)
|
||||||
|
|
||||||
let en = ($env_dirs | each {|en| $conda_info.envs | where $it == $en } | where ($it | length) == 1 | flatten)
|
let en = ($env_dirs | each {|en| $conda_info.envs | where $it == $en } | where ($it | length) == 1 | flatten)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue