From dbf84b7640b5b823e3ea5462b98837f760e18fcc Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 22 Nov 2021 17:49:14 +0100 Subject: [PATCH] fix: validate this recipe Part of https://git.coopcloud.tech/coop-cloud/organising/issues/255. --- cli/catalogue/generate.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/catalogue/generate.go b/cli/catalogue/generate.go index 5e89a63e..d4490af4 100644 --- a/cli/catalogue/generate.go +++ b/cli/catalogue/generate.go @@ -92,6 +92,9 @@ A new catalogue copy can be published to the recipes repository by passing the ArgsUsage: "[]", Action: func(c *cli.Context) error { recipeName := c.Args().First() + if recipeName != "" { + internal.ValidateRecipe(c) + } catalogueDir := path.Join(config.ABRA_DIR, "catalogue") url := fmt.Sprintf("%s/%s.git", config.REPOS_BASE_URL, "recipes")