fix: replace deprecated str downcase/upcase with str lowercase/uppercase

This commit is contained in:
2026-07-20 15:33:05 +08:00
parent cc1aab33a3
commit 427fa547a6
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
export def --env "pj uvthu" [] {
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")) {
return
}