summaryrefslogtreecommitdiff
path: root/functions/cache.sh
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2014-04-27 12:28:29 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2014-04-27 12:28:29 +0200
commit389dd5f27861e7658f3eab133f4227882d99e31c (patch)
tree7ecf08318727752a011801d97c39d9519f5d789c /functions/cache.sh
parent03e6d8d5a6986f096ce08b2af10bee14874772b4 (diff)
downloadvyos-live-build-389dd5f27861e7658f3eab133f4227882d99e31c.tar.gz
vyos-live-build-389dd5f27861e7658f3eab133f4227882d99e31c.zip
Allow cache directories to be symlinks as well (Closes: #741934).
Diffstat (limited to 'functions/cache.sh')
-rwxr-xr-xfunctions/cache.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/cache.sh b/functions/cache.sh
index 79a8b6893..42d45d63a 100755
--- a/functions/cache.sh
+++ b/functions/cache.sh
@@ -14,7 +14,7 @@ Restore_cache ()
if [ "${LB_CACHE}" = "true" ] && [ "${LB_CACHE_PACKAGES}" = "true" ]
then
- if [ -d "${DIRECTORY}" ]
+ if [ -e "${DIRECTORY}" ]
then
# Restore old cache
if [ "$(stat --printf %d ${DIRECTORY})" = "$(stat --printf %d chroot/var/cache/apt/archives)" ]