mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
update cleanup to use -depth option
Signed-off-by: Zachery Hostens <zacheryph@gmail.com>
This commit is contained in:
parent
aa48795203
commit
dd0c340264
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user