Skip to content

Commit 585b160

Browse files
author
OpenShift Bot
authored
Merge pull request #13691 from stevekuznetsov/skuznets/find
Merged by openshift-bot
2 parents 4d09d8a + d72953b commit 585b160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/lib/cleanup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function os::cleanup::tmpdir() {
118118
fi
119119

120120
# delete any sub directory underneath BASETMPDIR
121-
for directory in $( find "${BASETMPDIR}" -d 2 ); do
121+
for directory in $( find "${BASETMPDIR}" -mindepth 2 -maxdepth 2 ); do
122122
${USE_SUDO:+sudo} rm -rf "${directory}"
123123
done
124124
}

0 commit comments

Comments
 (0)