Skip to content

Commit b96ecbf

Browse files
author
Vic Shóstak
authored
Merge pull request #133 from mystique09/fix-custom-template
fix: error when creating new app with custom template
2 parents a1a6470 + 4c6e33b commit b96ecbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func runCreateCmd(cmd *cobra.Command, args []string) error {
8181
}
8282

8383
// Catch the cancel action (hit "n" in the last question).
84-
if !createAnswers.AgreeCreation {
84+
if (!createAnswers.AgreeCreation && !useCustomTemplate) || (!customCreateAnswers.AgreeCreation && useCustomTemplate) {
8585
cgapp.ShowMessage(
8686
"",
8787
"Oh no! You said \"no\", so I won't create anything. Hope to see you soon!",

0 commit comments

Comments
 (0)