diff --git a/scripts/setup.sh b/scripts/setup.sh index 22e726de52..d13e0c43ee 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -251,7 +251,7 @@ function cleanup_linux { done shopt -u extglob nullglob - files_to_clean+="$(echo /dev/shm/* | egrep '(spdk_tgt|iscsi|vhost|nvmf|rocksdb|bdevtest|bdevperf)_trace|spdk_iscsi_conns' || true) " + files_to_clean+="$(ls -1 /dev/shm/* | egrep '(spdk_tgt|iscsi|vhost|nvmf|rocksdb|bdevtest|bdevperf)_trace|spdk_iscsi_conns' || true) " files_to_clean="$(readlink -e assert_not_empty $files_to_clean || true)" if [[ -z "$files_to_clean" ]]; then echo "Clean"