From a5f5c9dc9c41d491f40f90b83f743fc78109a58d Mon Sep 17 00:00:00 2001 From: Huu Le <39040748+leehuwuj@users.noreply.github.com> Date: Wed, 16 Oct 2024 09:52:25 +0700 Subject: [PATCH] fix always ask post installation action (#376) --- questions/questions.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/questions/questions.ts b/questions/questions.ts index e48d3c08..0577de5b 100644 --- a/questions/questions.ts +++ b/questions/questions.ts @@ -88,7 +88,9 @@ export const askProQuestions = async (program: QuestionArgs) => { questionHandlers, ); program.llamapack = llamapack; - program.postInstallAction = await askPostInstallAction(program); + if (!program.postInstallAction) { + program.postInstallAction = await askPostInstallAction(program); + } return; // early return - no further questions needed for llamapack projects } @@ -396,5 +398,7 @@ export const askProQuestions = async (program: QuestionArgs) => { program.tools = tools; } - program.postInstallAction = await askPostInstallAction(program); + if (!program.postInstallAction) { + program.postInstallAction = await askPostInstallAction(program); + } }; -- GitLab