Merge pull request #886 from sm00th/safe_cleancache

kpatch-build: less aggressive clean_cache()
This commit is contained in:
Joe Lawrence 2018-06-19 09:30:07 -04:00 committed by GitHub
commit 7dc6e5f215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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