Skip to content

Commit 40ed953

Browse files
committed
Correct bug with 10+ upload files
1 parent c464af1 commit 40ed953

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hooks/post-command

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ elif [[ "${COMPRESSED}" == "true" ]]; then
166166
if [[ -n "${!dest_env_var:-}" ]]; then
167167
path="$(expand_vars "${dest_env_var}")"
168168
else
169-
path="$(expand_vars path)"
169+
# could use $path directly, but would break the ordering because 0,1,10,11,2,20,3 :(
170+
# may be solved by using sort -V but it is GNU-specific
171+
path="$(expand_vars "BUILDKITE_PLUGIN_ARTIFACTS_UPLOAD_${index}")"
170172
fi
171173

172174
final_paths+=("$path")

0 commit comments

Comments
 (0)