Replace deprecated str downcase with str lowercase

This commit is contained in:
2026-07-20 15:29:25 +08:00
parent 0cae2d0fd9
commit a76bb93a49
+1 -1
View File
@@ -1,5 +1,5 @@
export def --env "pj brewthu" [] { export def --env "pj brewthu" [] {
let os_name = ($nu.os-info.name? | default "" | into string | str downcase) let os_name = ($nu.os-info.name? | default "" | into string | str lowercase)
if not (($os_name | str contains "darwin") or ($os_name | str contains "macos")) { if not (($os_name | str contains "darwin") or ($os_name | str contains "macos")) {
return return
} }