Skip to content

Commit

Permalink
fix: quiet and string compare (#52)
Browse files Browse the repository at this point in the history
* fix: quiet and string compare
* fix: fix compare
  • Loading branch information
viceice authored May 17, 2021
1 parent db8a518 commit a0da5fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/usr/local/buildpack/tools/composer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e

check_command php

if [[ "${TOOL_VERSION}" -eq "latest" ]]; then
if [[ "${TOOL_VERSION}" == "latest" ]]; then
export "TOOL_VERSION=$(curl -s https://api.github.com/repos/composer/composer/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')"
fi

Expand Down
2 changes: 1 addition & 1 deletion src/usr/local/buildpack/tools/elixir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ check_command erl

curl -sSL https://github.com/elixir-lang/elixir/releases/download/v${TOOL_VERSION}/Precompiled.zip -o elixir.zip
mkdir -p /usr/local/elixir/
unzip elixir.zip -d /usr/local/elixir/
unzip -q elixir.zip -d /usr/local/elixir/
rm elixir.zip

export_path "/usr/local/elixir/bin"
Expand Down
2 changes: 1 addition & 1 deletion src/usr/local/buildpack/tools/gradle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require_root
check_command java

curl -sL -o gradle.zip https://services.gradle.org/distributions/gradle-${TOOL_VERSION}-bin.zip
unzip -d /usr/local gradle.zip
unzip -q -d /usr/local gradle.zip
rm gradle.zip

export_path "/usr/local/gradle-${TOOL_VERSION}/bin"
Expand Down
2 changes: 1 addition & 1 deletion src/usr/local/buildpack/tools/terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DISTRO=linux_amd64
URL=https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_${DISTRO}.zip

curl -sL $URL -o tmp.zip
unzip -d /usr/local/bin/ tmp.zip
unzip -q -d /usr/local/bin/ tmp.zip
rm tmp.zip

terraform version

0 comments on commit a0da5fe

Please sign in to comment.