Skip to content

Commit

Permalink
let's just warn if deleting cache fails
Browse files Browse the repository at this point in the history
Signed-off-by: Rajdeep Malakar <rajdeepm.dev@gmail.com>
  • Loading branch information
rustdevbtw committed May 11, 2024
1 parent 132605a commit 31d63d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modes/uninstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ async function uninstall(prefix: Path, pkgs: PackageRequirement[]) {
try {
await Deno.remove(Path.home().join(`.cache/pkgx/envs/${parts}`).toString(), {recursive: true})
} catch (e) {
console.warn(e);
}
for (const program of programs) {
const f = prefix.join(program)
Expand Down

0 comments on commit 31d63d6

Please sign in to comment.