diff --git a/cmd/sst/main.go b/cmd/sst/main.go index 74121b5c1..73097a447 100644 --- a/cmd/sst/main.go +++ b/cmd/sst/main.go @@ -237,16 +237,16 @@ func main() { return err } - spin := spinner.New(spinner.CharSets[14], 100*time.Millisecond) - spin.Suffix = " Installing dependencies..." - spin.Start() if !project.CheckDeps(version, cfgPath) { + spin := spinner.New(spinner.CharSets[14], 100*time.Millisecond) + spin.Suffix = " Installing dependencies..." + spin.Start() err = project.InstallDeps(version, cfgPath) + spin.Stop() if err != nil { return err } } - spin.Stop() color.New(color.FgGreen, color.Bold).Print("✔") color.New(color.FgWhite, color.Bold).Println(" Created new project with '", template, "' template")