Skip to content

Commit

Permalink
fix: Force tty for install scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Jan 7, 2025
1 parent 8455e9f commit 13421b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/static/install/proto.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ if (-not $env:PROTO_LOG) {

# Versions >= 0.30 handle the messaging
if ($Version -eq "latest" -or $Version -notmatch '^0\.[0-2]{1}[0-9]{1}\.') {
$env:STARBASE_FORCE_TTY = "true"

Start-Process -FilePath $BinPath -ArgumentList $SetupArgs -NoNewWindow -Wait

# While older versions do not
Expand Down
2 changes: 2 additions & 0 deletions website/static/install/proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ version_pattern="^0\.[0-2]{1}[0-9]{1}\."

# Versions >= 0.30 handle the messaging
if [[ "$version" == "latest" ]] || [[ ! "$version" =~ $version_pattern ]]; then
export STARBASE_FORCE_TTY=true

$bin_path setup "${setup_args[@]}"

# While older versions do not
Expand Down

0 comments on commit 13421b6

Please sign in to comment.