Skip to content

Commit

Permalink
Merge 3dbef39 into 342373c
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs committed Apr 24, 2024
2 parents 342373c + 3dbef39 commit 7d7f63e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modes/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export default async function(pkgs: PackageRequirement[]) {
}
const found = value.match(/^\s*exec pkgx \+([^ ]+)/)?.[1]
if (found) {
if (found != pkgstr) {
throw new PkgxError(`different version already installed: ${blurple(program)} ${dim(`(${found})`)}`)
}
n++
console.warn(`pkgx: already installed: ${blurple(program)} ${dim(`(${found})`)}`)
continue program_loop
Expand Down

0 comments on commit 7d7f63e

Please sign in to comment.