fix: Does not error when recipes folder does not exist in app new #552

Merged
decentral1se merged 2 commits from p4u1/abra:app-new-first-time into main 2025-08-11 12:47:44 +00:00
Showing only changes of commit 508a7491b3 - Show all commits

View File

@ -32,12 +32,12 @@ func ValidateRecipe(args []string, cmdName string) recipe.Recipe {
localRecipes, err := recipe.GetRecipesLocal()
if err != nil {
log.Fatal(err)
}
for _, recipeLocal := range localRecipes {
if _, ok := knownRecipes[recipeLocal]; !ok {
knownRecipes[recipeLocal] = true
log.Infof("can't read local recipes: %s", err)
} else {
for _, recipeLocal := range localRecipes {
if _, ok := knownRecipes[recipeLocal]; !ok {
knownRecipes[recipeLocal] = true
}
}
}