Skip to content

Commit

Permalink
chore: ui: add a terminal check (#12256)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennijuju authored Jul 24, 2024
1 parent 5b52dbc commit 4cf04dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chain/consensus/filcns/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/docker/go-units"
"github.com/ipfs/go-cid"
cbor "github.com/ipfs/go-ipld-cbor"
"golang.org/x/term"
"golang.org/x/xerrors"

"github.com/filecoin-project/go-address"
Expand Down Expand Up @@ -2519,7 +2520,11 @@ func UpgradeActorsV14(ctx context.Context, sm *stmgr.StateManager, cache stmgr.M
if err != nil {
return cid.Undef, xerrors.Errorf("migrating actors v14 state: %w", err)
}
fmt.Print(upgradeSplash)

if term.IsTerminal(int(os.Stderr.Fd())) {
fmt.Print(upgradeSplash)
}

return newRoot, nil
}

Expand Down

0 comments on commit 4cf04dc

Please sign in to comment.