From 08a1ad9b9e4001b739152df7c04c27e7671f4482 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Fri, 17 Jan 2020 15:24:43 +0300 Subject: [PATCH] Remove logs from test folder too inn the cleaning script --- CHANGELOG.md | 1 + rel/commands/clear_build.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 471f4b6e4a..e686211803 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - [2910](https://github.com/poanetwork/blockscout/pull/2910) - Reorganize queries and indexes for internal_transactions table ### Chore +- [#2959](https://github.com/poanetwork/blockscout/pull/2959) - Remove logs from test folder too in the cleaning script - [#2947](https://github.com/poanetwork/blockscout/pull/2947) - Upgrade Circle CI postgres Docker image - [#2946](https://github.com/poanetwork/blockscout/pull/2946) - Fix vulnerable NPM deps - [#2942](https://github.com/poanetwork/blockscout/pull/2942) - Actualize Docker setup diff --git a/rel/commands/clear_build.sh b/rel/commands/clear_build.sh index 5a032809ba..7c79a85ec3 100755 --- a/rel/commands/clear_build.sh +++ b/rel/commands/clear_build.sh @@ -4,8 +4,12 @@ rm -rf ./_build rm -rf ./deps logs=$(find . -not -path '*/\.*' -name "logs" -type d) dev=$(find ${logs} -name "dev") -files_and_dirs_in_logs=$(ls -d ${dev}/*) -rm -rf $files_and_dirs_in_logs +files_and_dirs_in_logs_dev=$(ls -d ${dev}/*) +rm -rf $files_and_dirs_in_logs_dev + +test=$(find ${logs} -name "test") +files_and_dirs_in_logs_test=$(ls -d ${test}/*) +rm -rf $files_and_dirs_in_logs_test find . -name "node_modules" -type d -exec rm -rf '{}' +