aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/catalyst-auto')
-rwxr-xr-xtools/catalyst-auto7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index c6b303f5..7c298699 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -329,14 +329,9 @@ run_catalyst_commands() {
if [[ ${preclean} == 1 ]]; then
rm -rf "${TMP_PATH:-/tmp}/catalyst-auto".*
- snapshot_cache=$(catalyst_var snapshot_cache)
- if [[ -z ${snapshot_cache} ]]; then
- echo "error: snapshot_cache not set in config file"
- exit 1
- fi
pushd "${BUILD_SRCDIR_BASE}" >/dev/null || exit 1
rm -rf --one-file-system \
- kerncache packages snapshots tmp "${snapshot_cache}"/*
+ kerncache packages snapshots tmp
popd >/dev/null
fi