1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +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:
Hofer-Julian 2023-04-14 13:42:12 +02:00 committed by GitHub
parent cc894d2b7a
commit 2d12532495
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ export def-env deactivate [] {
def check-if-env-exists [ env_name: string, conda_info: record ] {
let env_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)