Skip to content

Commit a5f5c9d

Browse files
authored
fix always ask post installation action (#376)
1 parent 2be68d1 commit a5f5c9d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

questions/questions.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ export const askProQuestions = async (program: QuestionArgs) => {
8888
questionHandlers,
8989
);
9090
program.llamapack = llamapack;
91-
program.postInstallAction = await askPostInstallAction(program);
91+
if (!program.postInstallAction) {
92+
program.postInstallAction = await askPostInstallAction(program);
93+
}
9294
return; // early return - no further questions needed for llamapack projects
9395
}
9496

@@ -396,5 +398,7 @@ export const askProQuestions = async (program: QuestionArgs) => {
396398
program.tools = tools;
397399
}
398400

399-
program.postInstallAction = await askPostInstallAction(program);
401+
if (!program.postInstallAction) {
402+
program.postInstallAction = await askPostInstallAction(program);
403+
}
400404
};

0 commit comments

Comments
 (0)