Skip to content

Commit

Permalink
Updating github-config
Browse files Browse the repository at this point in the history
  • Loading branch information
paketo-bot committed Jan 7, 2025
1 parent ff22961 commit c125f33
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/.util/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,10 @@ function util::tools::pack::install() {
pack_config_enable_experimental="false"
fi

tmp_location="/tmp/pack.tgz"
curl_args=(
"--fail"
"--silent"
"--location"
"--output" "${tmp_location}"
)

if [[ "${token}" != "" ]]; then
Expand All @@ -160,16 +158,14 @@ function util::tools::pack::install() {
arch=$(util::tools::arch --blank-amd64)

curl "https://github.com/buildpacks/pack/releases/download/${version}/pack-${version}-${os}${arch:+-$arch}.tgz" \
"${curl_args[@]}"

tar xzf "${tmp_location}" -C "${dir}"
"${curl_args[@]}" | \
tar xzf - -C "${dir}"
chmod +x "${dir}/pack"

if [[ "${pack_config_enable_experimental}" == "true" ]]; then
"${dir}"/pack config experimental true
fi

rm "${tmp_location}"
else
util::print::info "Using pack $("${dir}"/pack version)"
fi
Expand Down

0 comments on commit c125f33

Please sign in to comment.