@@ -280,18 +280,20 @@ var stackUpdateCmd = &cobra.Command{
280280 websiteBuildUpdates , err := proj .BuildWebsites (envVariables )
281281 tui .CheckErr (err )
282282
283- if isNonInteractive () {
284- fmt .Println ("building project websites" )
285- for update := range websiteBuildUpdates {
286- for _ , line := range strings .Split (strings .TrimSuffix (update .Message , "\n " ), "\n " ) {
287- fmt .Printf ("%s [%s]: %s\n " , update .ServiceName , update .Status , line )
283+ if len (proj .GetWebsites ()) > 0 {
284+ if isNonInteractive () {
285+ fmt .Println ("building project websites" )
286+ for update := range websiteBuildUpdates {
287+ for _ , line := range strings .Split (strings .TrimSuffix (update .Message , "\n " ), "\n " ) {
288+ fmt .Printf ("%s [%s]: %s\n " , update .ServiceName , update .Status , line )
289+ }
288290 }
291+ } else {
292+ prog := teax .NewProgram (build .NewModel (websiteBuildUpdates , "Building Websites" ))
293+ // blocks but quits once the above updates channel is closed by the build process
294+ _ , err = prog .Run ()
295+ tui .CheckErr (err )
289296 }
290- } else {
291- prog := teax .NewProgram (build .NewModel (websiteBuildUpdates , "Building Websites" ))
292- // blocks but quits once the above updates channel is closed by the build process
293- _ , err = prog .Run ()
294- tui .CheckErr (err )
295297 }
296298
297299 providerStdout := make (chan string )
0 commit comments