From: Alfredo Deza Date: Fri, 30 Aug 2019 13:00:01 +0000 (-0400) Subject: scripts: do not specify directories with find -delete, rm the path X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1385%2Fhead;p=ceph-build.git scripts: do not specify directories with find -delete, rm the path Signed-off-by: Alfredo Deza --- 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