diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a35146f..02a600e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,4 @@ jobs: run: version - name: Run the tests - run: | - nu --commands $"use ($env.PWD)/nupm/; nupm install --no-confirm --force --path ." - nu --commands $"use ($env.PWD)/nupm/; nupm test" + run: nu --commands $"use ($env.PWD)/nupm/; nupm test" diff --git a/nupm/install.nu b/nupm/install.nu index 0429500..b2e0f76 100644 --- a/nupm/install.nu +++ b/nupm/install.nu @@ -87,9 +87,7 @@ def install-path [ let destination = $module_dir | path join $package.name if $force { - if ($destination | path exists) { - rm --recursive --force $destination - } + rm --recursive --force $destination } if ($destination | path type) == dir {