fix: handle recipe name passing correctly
continuous-integration/drone/push Build is failing Details

Closes coop-cloud/organising#224.
This commit is contained in:
decentral1se 2021-11-02 13:33:46 +01:00
parent 7022f42711
commit f833ccb864
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ func ValidateRecipeWithPrompt(c *cli.Context) recipe.Recipe {
if err := survey.AskOne(prompt, &recipeName); err != nil {
logrus.Fatal(err)
}
} else {
}
if recipeName == "" {
ShowSubcommandHelpAndError(c, errors.New("no recipe provided"))
}