From 0252bdbf604419ea624d032e917d86508ca87aad Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Thu, 27 Oct 2022 00:05:10 +0200 Subject: [PATCH] scripts/setup: Always cleanup target directories Currently, in case target directories are empty the directories themselves are not being purged. Change that, as there is no need to keep them around. Signed-off-by: Michal Berger Change-Id: Ia1a9d60a91508e74b7e106e0217414a8927029b6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15153 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki Reviewed-by: Konrad Sztyber --- scripts/setup.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index de1d460b6..b0d8b4faa 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -425,10 +425,6 @@ function cleanup_linux() { files_to_clean+=(/dev/shm/@(@($match_spdk)_trace|spdk_iscsi_conns)) files_to_clean+=("${file_locks[@]}") - if ((${#files_to_clean[@]} == 0)); then - echo "Clean" - return 0 - fi # This may fail in case path that readlink attempts to resolve suddenly # disappears (as it may happen with terminating processes).