diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d66d088..1281101 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - uses: hustcer/setup-nu@v3.10 with: - version: "0.110.0" + version: "0.114.0" - name: Show Nushell Version run: version diff --git a/nupm/utils/dirs.nu b/nupm/utils/dirs.nu index 108f964..07988c7 100644 --- a/nupm/utils/dirs.nu +++ b/nupm/utils/dirs.nu @@ -62,13 +62,13 @@ export def nupm-home-prompt [--no-confirm]: nothing -> bool { mut answer = '' - while ($answer | str downcase) not-in [ y n ] { + while ($answer | str lowercase) not-in [ y n ] { $answer = (input ( $'Root directory "($env.NUPM_HOME)" does not exist.' + ' Do you want to create it? [y/n] ')) } - if ($answer | str downcase) not-in [ y Y ] { + if ($answer | str lowercase) not-in [ y Y ] { return false }