From dd59df1292c82110bea2a3866e771d441a469d39 Mon Sep 17 00:00:00 2001 From: Marco Bersani Date: Tue, 23 Jan 2024 17:30:31 +0100 Subject: [PATCH] Handle clone or pull error Signed-off-by: Marco Bersani --- cmd/batch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/batch.go b/cmd/batch.go index 2e3e00b..126da90 100644 --- a/cmd/batch.go +++ b/cmd/batch.go @@ -46,7 +46,8 @@ func batchCmd(configPath, logLevel, logFormat *string) *cobra.Command { exit(err) for _, project := range projects { - cloneOrPull(git, project) + err := cloneOrPull(git, project) + exit(err) } fmt.Println("Done!")