kpatch-build: fix clean_cache

Commit d86c1113cc ("kpatch-build: less aggressive clean_cache()")
broke clean_cache().  Instead of expanding the wildcard, it tries to
delete a file named '*'.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
Josh Poimboeuf 2018-07-17 15:43:43 -05:00
parent cd352cf8a8
commit 0655ca50b8

View File

@ -125,7 +125,7 @@ cleanup() {
}
clean_cache() {
rm -rf "${CACHEDIR:?}/*"
rm -rf "${CACHEDIR:?}"/*
mkdir -p "$TEMPDIR" || die "Couldn't create $TEMPDIR"
}