File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments