0
0
forked from toolshed/abra

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

This commit is contained in:
p4u1 2025-04-25 10:10:26 +02:00
parent 2fbef41a3a
commit 508a7491b3

View File

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