Skip to content

Commit

Permalink
raw renamed as raw_json
Browse files Browse the repository at this point in the history
  • Loading branch information
tesujimath committed Oct 28, 2024
1 parent 6da26e6 commit 572f24b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bash-env.nu
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export def main [

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

0 comments on commit 572f24b

Please sign in to comment.