update cleanup to use -depth option

Signed-off-by: Zachery Hostens <zacheryph@gmail.com>
This commit is contained in:
Zachery Hostens 2017-08-02 08:04:40 -05:00
parent aa48795203
commit dd0c340264
No known key found for this signature in database
GPG Key ID: 37CDFB272575E480
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ set -e
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
clean_up() {
find . -iname "test-containerd*" -not -iname "*.yml" -exec rm -rf {} \;
find . -depth -iname "test-containerd*" -not -iname "*.yml" -exec rm -rf {} \;
}
trap clean_up EXIT

View File

@ -12,7 +12,7 @@ set -e
NAME=test-ctr
clean_up() {
find . -iname "test-ctr*" -not -iname "*.yml" -exec rm -rf {} \;
find . -depth -iname "test-ctr*" -not -iname "*.yml" -exec rm -rf {} \;
}
trap clean_up EXIT