Skip to content

Commit

Permalink
fix: install error "name" undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
CKylinMC committed Jul 18, 2023
1 parent 3414475 commit 446c19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export async function searchCloud(
);
continue;
}
userepo = repoinfo;
repolist = list;
reposource = list.reposource;
const pkgs = list.pkgs;
const disableBanner = await Settings.get('disable_banner', false);
Expand All @@ -108,8 +110,6 @@ export async function searchCloud(
if (!pkg) {
continue;
}
userepo = repoinfo;
repolist = list;
}
if (!pkg) {
log(chalk.red(`Package ${name} not found.`));
Expand Down

0 comments on commit 446c19a

Please sign in to comment.