Skip to content

Commit

Permalink
fix: Disable prompts for proto install.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Jan 8, 2025
1 parent 0aeda31 commit 771d20c
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions website/static/install/proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,18 @@ fi

rm -rf "$download_file" "$temp_dir"


if [[ "$PROTO_DEBUG" == "true" ]]; then
echo
echo "arch=$arch"
echo "target=$target"
echo "download_url=$download_url"
echo "bin_path=$bin_path"
echo "shim_path=$shim_path"
echo "is_wsl=$is_wsl"
echo "deps=$deps"
fi

# Run setup script to update shells

if [[ -z "$PROTO_LOG" ]]; then
Expand All @@ -150,7 +162,10 @@ version_pattern="^0\.[0-2]{1}[0-9]{1}\."
if [[ "$version" == "latest" ]] || [[ ! "$version" =~ $version_pattern ]]; then
export STARBASE_FORCE_TTY=true

$bin_path setup "${setup_args[@]}"
# Temp fix because prompts are broken! https://github.com/moonrepo/proto/issues/692
export CI=true

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

# While older versions do not
else
Expand All @@ -166,14 +181,3 @@ else
echo
echo "Need help? Join our Discord https://discord.gg/qCh9MEynv2"
fi

if [[ "$PROTO_DEBUG" == "true" ]]; then
echo
echo "arch=$arch"
echo "target=$target"
echo "download_url=$download_url"
echo "bin_path=$bin_path"
echo "shim_path=$shim_path"
echo "is_wsl=$is_wsl"
echo "deps=$deps"
fi

0 comments on commit 771d20c

Please sign in to comment.