Skip to content

Commit f6a5a2e

Browse files
authored
fix: replace deprecited api let-env for nushell script (#247)
1 parent fdaa27c commit f6a5a2e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

set-java-home.nu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def asdf_update_java_home [] {
55
let $full_path = (realpath $java_path | lines | nth 0 | str trim)
66

77
let $java_home = ($full_path | path dirname | path dirname)
8-
let-env JAVA_HOME = $java_home
9-
let-env JDK_HOME = $java_home
8+
$env.JAVA_HOME = $java_home
9+
$env.JDK_HOME = $java_home
1010
}
11-
}
11+
}

0 commit comments

Comments
 (0)