Skip to content

Commit 8595379

Browse files
committed
Updating github-config
1 parent 774a04f commit 8595379

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/.util/tools.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,10 @@ function util::tools::pack::install() {
142142
pack_config_enable_experimental="false"
143143
fi
144144

145-
tmp_location="/tmp/pack.tgz"
146145
curl_args=(
147146
"--fail"
148147
"--silent"
149148
"--location"
150-
"--output" "${tmp_location}"
151149
)
152150

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

162160
curl "https://github.com/buildpacks/pack/releases/download/${version}/pack-${version}-${os}${arch:+-$arch}.tgz" \
163-
"${curl_args[@]}"
164-
165-
tar xzf "${tmp_location}" -C "${dir}"
161+
"${curl_args[@]}" | \
162+
tar xzf - -C "${dir}"
166163
chmod +x "${dir}/pack"
167164

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

172-
rm "${tmp_location}"
173169
else
174170
util::print::info "Using pack $("${dir}"/pack version)"
175171
fi

0 commit comments

Comments
 (0)