diff --git a/cli/recipe/fetch.go b/cli/recipe/fetch.go index 2a31e8b2..a5c1a368 100644 --- a/cli/recipe/fetch.go +++ b/cli/recipe/fetch.go @@ -47,7 +47,6 @@ var RecipeFetchCommand = &cobra.Command{ log.Fatal("cannot use [recipe] and --all/-a together") } - ensureCtx := internal.GetEnsureContext() if recipeName != "" { r := recipe.Get(recipeName) if _, err := os.Stat(r.Dir); !os.IsNotExist(err) { @@ -91,6 +90,7 @@ var RecipeFetchCommand = &cobra.Command{ } catlBar := formatter.CreateProgressbar(len(catalogue), "fetching latest recipes...") + ensureCtx := internal.GetEnsureContext() for recipeName := range catalogue { r := recipe.Get(recipeName) if err := r.Ensure(ensureCtx); err != nil {