From c125f33f30879c448dafbe237801d139c0c79bb3 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Tue, 7 Jan 2025 15:03:47 +0000 Subject: [PATCH] Updating github-config --- scripts/.util/tools.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/.util/tools.sh b/scripts/.util/tools.sh index 801e6ac..8feecf3 100644 --- a/scripts/.util/tools.sh +++ b/scripts/.util/tools.sh @@ -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 @@ -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