Replace deprecated str downcase with str lowercase
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user