2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2025-08-20 14:06:42 +00:00

fix windows build

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2022-09-10 12:16:41 +02:00
parent 13efc1a646
commit d9f253d65c
3 changed files with 5 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package run
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"net"
@@ -243,7 +244,7 @@ func vbox(ctx context.Context, path string) error {
}
defer cleanup(vboxmanage, name)
if err := term.Resize(ws); err != nil {
if err := term.Resize(ws); err != nil && !errors.Is(err, console.ErrUnsupported) {
return fmt.Errorf("resize term: %v", err)
}
if err := term.SetRaw(); err != nil {