From f53760c6116a61d864aee2c57c3c101bcca87709 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 30 Aug 2019 09:00:01 -0400 Subject: [PATCH] scripts: do not specify directories with find -delete, rm the path Signed-off-by: Alfredo Deza --- scripts/build_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index e9e3a4da..5ee82ff1 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -728,7 +728,7 @@ prune_stale_vagrant_vms() { shopt -s globstar # From the global workspace path, find any machine stale from other jobs - sudo find "$SEARCH_PATH" -type d -path "*/.vagrant/machines/*" -delete + sudo find "$SEARCH_PATH" -path "*/.vagrant/machines/*" -delete # unset extended pattern globbing, to prevent messing up other functions shopt -u globstar -- 2.47.3