Skip to content

Commit

Permalink
Find files and directories when pushing binaries to GCS
Browse files Browse the repository at this point in the history
This corrects a change that caused only files to be
pushed to GCS, which resulted in binaries in
directories such as /bin to be omitted.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
  • Loading branch information
hasheddan committed Apr 2, 2020
1 parent 01df93c commit e4b76cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/releaselib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ release::gcs::locally_stage_release_artifacts() {

# Upload the "naked" binaries to GCS. This is useful for install scripts that
# download the binaries directly and don't need tars.
mapfile -t platforms < <(find "${release_stage}/client" -maxdepth 1 -mindepth 1 -type f -exec basename {} \;)
mapfile -t platforms < <(find "${release_stage}/client" -maxdepth 1 -mindepth 1 -exec basename {} \;)
for platform in "${platforms[@]}"; do
src="$release_stage/client/$platform/$release_kind/client/bin/*"
dst="bin/${platform/-//}/"
Expand Down

0 comments on commit e4b76cb

Please sign in to comment.