From 8afd1a89293a016e66fdc6ac20e66170ed16ba35 Mon Sep 17 00:00:00 2001 From: Christian Weichel Date: Thu, 17 Feb 2022 14:51:32 +0000 Subject: [PATCH] [supervisor] Fix dotfile installation --- components/supervisor/pkg/supervisor/supervisor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/supervisor/pkg/supervisor/supervisor.go b/components/supervisor/pkg/supervisor/supervisor.go index faed51da411c2a..91f121d415767e 100644 --- a/components/supervisor/pkg/supervisor/supervisor.go +++ b/components/supervisor/pkg/supervisor/supervisor.go @@ -437,7 +437,9 @@ func installDotfiles(ctx context.Context, cfg *Config, tokenService *InMemoryTok }() select { case err := <-done: - return err + if err != nil { + return err + } case <-time.After(120 * time.Second): return xerrors.Errorf("dotfiles repo clone did not finish within two minutes") }