forked from toolshed/abra
		
	fix: Does not error when recipes folder does not exist in app new
This commit is contained in:
		@ -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
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user