Skip to content

Commit 8ec17e9

Browse files
atomanticCopilot
andauthored
skip running software install if config is empty
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 58870a0 commit 8ec17e9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ async function run() {
6262
try {
6363
const config = (await import(`./software/${file}`)).default;
6464

65+
if (!config.packages || config.packages.length === 0) {
66+
console.log(`${config.name} has no packages to install`);
67+
continue;
68+
}
6569
const shouldInstall = await confirm({
6670
message: `Do you want to install ${config.name}?`,
6771
default: false,

0 commit comments

Comments
 (0)