File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,9 @@ if is_released $toolchain_name; then
193193 exit 0
194194fi
195195
196- if [[ " $toolchain_name " != " $original_toolchain_name " ]]; then
197- for target in ${targets[@]} ; do
196+ for target in ${targets[@]} ; do
197+ original_toolchain_name=$( basename $( tar tfz swift-wasm-$channel -SNAPSHOT-$targets .tar.gz | head -n1) )
198+ if [[ " $toolchain_name " != " $original_toolchain_name " ]]; then
198199 tar xfz swift-wasm-$channel -SNAPSHOT-$target .tar.gz
199200 mv " $original_toolchain_name " " $toolchain_name "
200201 if [[ " $target " == macos_* ]]; then
@@ -208,8 +209,8 @@ if [[ "$toolchain_name" != "$original_toolchain_name" ]]; then
208209 fi
209210 tar cfz swift-wasm-$channel -SNAPSHOT-$target .tar.gz " $toolchain_name "
210211 rm -rf " $toolchain_name "
211- done
212- fi
212+ fi
213+ done
213214
214215release_packages=()
215216
You can’t perform that action at this time.
0 commit comments