Skip to content

Commit 44e4c0b

Browse files
authored
fix: stop using the deprecated --ignore-errors flag (#48)
nushell 0.106.0 deprecated the `--ignore-errors` flag in favor of a new `--optional` flag
1 parent 4699a72 commit 44e4c0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bash-env.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export def main [
2020
let raw = $input_str | bash-env-json ...($fn_args ++ $path_args) | complete
2121
let raw_json = $raw.stdout | from json
2222

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

3030
if ($export | is-not-empty) {
3131
print "warning: --export is deprecated, use --shellvars(-s) instead"
32-
let exported_shellvars = ($raw_json.shellvars | select -i ...$export)
32+
let exported_shellvars = ($raw_json.shellvars | select -o ...$export)
3333
$raw_json.env | merge ($exported_shellvars)
3434
} else if $shellvars or ($fn | is-not-empty) {
3535
$raw_json

0 commit comments

Comments
 (0)