File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -142,12 +142,10 @@ function util::tools::pack::install() {
142
142
pack_config_enable_experimental=" false"
143
143
fi
144
144
145
- tmp_location=" /tmp/pack.tgz"
146
145
curl_args=(
147
146
" --fail"
148
147
" --silent"
149
148
" --location"
150
- " --output" " ${tmp_location} "
151
149
)
152
150
153
151
if [[ " ${token} " != " " ]]; then
@@ -160,16 +158,14 @@ function util::tools::pack::install() {
160
158
arch=$( util::tools::arch --blank-amd64)
161
159
162
160
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} "
166
163
chmod +x " ${dir} /pack"
167
164
168
165
if [[ " ${pack_config_enable_experimental} " == " true" ]]; then
169
166
" ${dir} " /pack config experimental true
170
167
fi
171
168
172
- rm " ${tmp_location} "
173
169
else
174
170
util::print::info " Using pack $( " ${dir} " /pack version) "
175
171
fi
You can’t perform that action at this time.
0 commit comments