Skip to content

Commit

Permalink
fix(bash): handle when cluster names contain '/'
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Donnell <kevin@blockchaintp.com>
  • Loading branch information
scealiontach committed Jan 10, 2022
1 parent 13c3592 commit c3bf27b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bash/k8s-support-collector
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function create_package {
if [ "${ALL_NAMESPACES}" = "true" ]; then
file="$cluster.ALL-${now}.tar.gz"
fi
file=${file/\//_}
log::notice "Creating package $file"
find "${OUT_DIR}" -type f -print0 | sed -e "s@$OUT_DIR/@@g" |
xargs -0 tar cfz "$file" -C "${OUT_DIR}"
Expand Down

0 comments on commit c3bf27b

Please sign in to comment.