Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bash-env.nu
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export def main [
let raw = $input_str | bash-env-json ...($fn_args ++ $path_args) | complete
let raw_json = $raw.stdout | from json

let error = $raw_json | get -i error
let error = $raw_json | get -o error
if $error != null {
error make { msg: $error }
} else if $raw.exit_code != 0 {
Expand All @@ -29,7 +29,7 @@ export def main [

if ($export | is-not-empty) {
print "warning: --export is deprecated, use --shellvars(-s) instead"
let exported_shellvars = ($raw_json.shellvars | select -i ...$export)
let exported_shellvars = ($raw_json.shellvars | select -o ...$export)
$raw_json.env | merge ($exported_shellvars)
} else if $shellvars or ($fn | is-not-empty) {
$raw_json
Expand Down