Browse Source

fix: standard streams for new process and error message

Hintay 6 months ago
parent
commit
3859849bfb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      internal/upgrader/upgrade.go

+ 2 - 0
internal/upgrader/upgrade.go

@@ -270,5 +270,7 @@ func (u *Upgrader) PerformCoreUpgrade(tarPath string) (err error) {
 
 	// gracefully restart
 	cmd := exec.Command(os.Args[0])
+	cmd.Stdout = os.Stdout
+	cmd.Stderr = os.Stderr
 	return cmd.Start()
 }