Skip to content

Commit

Permalink
Update proto.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 5, 2023
1 parent 2483c2e commit 58df18f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions website/static/install/moon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bin="moon"
arch=$(uname -sm)
version="${1:-latest}"

if [ "$OS" = "Windows_NT" ]; then
if [[ "$OS" == "Windows_NT" ]]; then
target="moon-x86_64-pc-windows-msvc.exe"
bin="moon.exe"
else
Expand Down Expand Up @@ -43,7 +43,7 @@ else
is_wsl=false
fi

if [ "$version" == "latest" ]; then
if [[ "$version" == "latest" ]]; then
download_url="https://github.com/moonrepo/moon/releases/latest/download/${target}"
else
download_url="https://github.com/moonrepo/moon/releases/download/v${version}/${target}"
Expand Down Expand Up @@ -71,7 +71,7 @@ echo " export PATH=\"$install_dir:\$PATH\""
echo
echo "Need help? Join our Discord https://discord.gg/qCh9MEynv2"

if [ "$MOON_DEBUG" = "true" ]; then
if [[ "$MOON_DEBUG" == "true" ]]; then
echo
echo "arch=$arch"
echo "target=$target"
Expand Down
8 changes: 4 additions & 4 deletions website/static/install/proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ arch=$(uname -sm)
version="${1:-latest}"
ext=".tar.xz"

if [ "$OS" = "Windows_NT" ]; then
if [[ "$OS" == "Windows_NT" ]]; then
target="proto_cli-x86_64-pc-windows-msvc"
bin="proto.exe"
ext=".zip"
Expand Down Expand Up @@ -43,7 +43,7 @@ else
is_wsl=false
fi

if [ $# -eq 0 ]; then
if [[ "$version" == "latest" ]]; then
download_url="https://github.com/moonrepo/proto/releases/latest/download/$target$ext"
else
download_url="https://github.com/moonrepo/proto/releases/download/v$version/$target$ext"
Expand All @@ -62,7 +62,7 @@ fi

curl --fail --location --progress-bar --output "$download_file" "$download_url"

if [ "$ext" = ".zip" ]; then
if [[ "$ext" == ".zip" ]]; then
unzip -d "$temp_dir" "$download_file"

# Unzip doesnt remove components folder
Expand Down Expand Up @@ -91,7 +91,7 @@ echo "Launch a new terminal window to start using proto!"
echo
echo "Need help? Join our Discord https://discord.gg/qCh9MEynv2"

if [ "$PROTO_DEBUG" = "true" ]; then
if [[ "$PROTO_DEBUG" == "true" ]]; then
echo
echo "arch=$arch"
echo "target=$target"
Expand Down

0 comments on commit 58df18f

Please sign in to comment.