summaryrefslogtreecommitdiff
path: root/functions/cache.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/cache.sh')
-rwxr-xr-xfunctions/cache.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/cache.sh b/functions/cache.sh
index d83b7e1..147cf5c 100755
--- a/functions/cache.sh
+++ b/functions/cache.sh
@@ -13,7 +13,7 @@ Restore_cache ()
{
DIRECTORY="${1}"
- if [ "${LH_CACHE_PACKAGES}" = "enabled" ]
+ if [ "${LH_CACHE}" = "enabled" ] && [ "${LH_CACHE_PACKAGES}" = "enabled" ]
then
if [ -d "${DIRECTORY}" ]
then
@@ -27,7 +27,7 @@ Save_cache ()
{
DIRECTORY="${1}"
- if [ "${LH_CACHE_PACKAGES}" = "enabled" ]
+ if [ "${LH_CACHE}" = "enabled" ] && [ "${LH_CACHE_PACKAGES}" = "enabled" ]
then
# Cleaning current cache
Chroot "apt-get autoclean"