Skip to content

Commit

Permalink
Merge branch 'main' into create-e2e-importer-online
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-aranha-cw authored Jul 24, 2024
2 parents c1d8aba + 4dbb160 commit d694cf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chaos/experiments/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ cleanup() {

sleep 2
if [ $exit_code -eq 0 ]; then
rm instance_*.log || true
find . -type d -name "instance_*" -print0 | xargs -0 rm -rf || true
rm instance_*.log 2>/dev/null || true
find . -type d -name "instance_*" -print0 | xargs -0 rm -rf 2>/dev/null || true
fi
rm -rf tmp_rocks_* || true
find . -type d -name "tmp_rocks_*" -print0 | xargs -0 rm -rf || true
rm -rf tmp_rocks_* 2>/dev/null || true
find . -type d -name "tmp_rocks_*" -print0 | xargs -0 rm -rf 2>/dev/null || true
echo "Job is done. With exit code $exit_code"
}
trap cleanup EXIT INT TERM
Expand Down

0 comments on commit d694cf9

Please sign in to comment.