fix: validate this recipe

Part of coop-cloud/organising#255.
This commit is contained in:
decentral1se 2021-11-22 17:49:14 +01:00
parent 75db249053
commit dbf84b7640
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -92,6 +92,9 @@ A new catalogue copy can be published to the recipes repository by passing the
ArgsUsage: "[<recipe>]", ArgsUsage: "[<recipe>]",
Action: func(c *cli.Context) error { Action: func(c *cli.Context) error {
recipeName := c.Args().First() recipeName := c.Args().First()
if recipeName != "" {
internal.ValidateRecipe(c)
}
catalogueDir := path.Join(config.ABRA_DIR, "catalogue") catalogueDir := path.Join(config.ABRA_DIR, "catalogue")
url := fmt.Sprintf("%s/%s.git", config.REPOS_BASE_URL, "recipes") url := fmt.Sprintf("%s/%s.git", config.REPOS_BASE_URL, "recipes")