Skip to content

Commit 18af03e

Browse files
chrischdik8s-infra-cherrypick-robot
authored andcommitted
e2e.sh: ensure on_exit to not fail due to broken or empty tarballs
1 parent bd68068 commit 18af03e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/e2e.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ on_exit() {
6565
find "${ARTIFACTS}" -type f -name pod-logs.tar.gz | while IFS= read -r tarball; do
6666
echo "Unpacking ${tarball} for secrets replacement"
6767
mkdir -p "${tarball}-unpacked"
68-
tar -xzf "${tarball}" -C "${tarball}-unpacked"
68+
# on_exit should not fail due to broken tarballs
69+
tar -xzf "${tarball}" -C "${tarball}-unpacked" || true
6970
rm "${tarball}"
7071
done
7172
# Delete non-text files from artifacts directory to not leak files accidentially

0 commit comments

Comments
 (0)