From c3bf27b5cd6ccfb54ca26e74400a6a7910b1410d Mon Sep 17 00:00:00 2001 From: Kevin O'Donnell Date: Mon, 10 Jan 2022 09:14:28 -0500 Subject: [PATCH] fix(bash): handle when cluster names contain '/' Signed-off-by: Kevin O'Donnell --- bash/k8s-support-collector | 1 + 1 file changed, 1 insertion(+) diff --git a/bash/k8s-support-collector b/bash/k8s-support-collector index f99bbf3..7c5c55f 100755 --- a/bash/k8s-support-collector +++ b/bash/k8s-support-collector @@ -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}"