Skip to content

Commit f8f3964

Browse files
committed
Default empty string on null input
1 parent 8d098ae commit f8f3964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash-env.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export def main [
1616
[]
1717
}
1818

19-
let raw = ($in | into string | str join "\n") | bash-env-json ...($fn_args ++ $path_args) | complete
19+
let raw = ($in | default "" | str join "\n") | bash-env-json ...($fn_args ++ $path_args) | complete
2020
let raw_json = $raw.stdout | from json
2121

2222
let error = $raw_json | get -i error

0 commit comments

Comments
 (0)