diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2014-04-27 12:28:29 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2014-04-27 12:28:29 +0200 |
commit | 389dd5f27861e7658f3eab133f4227882d99e31c (patch) | |
tree | 7ecf08318727752a011801d97c39d9519f5d789c /functions | |
parent | 03e6d8d5a6986f096ce08b2af10bee14874772b4 (diff) | |
download | vyos-live-build-389dd5f27861e7658f3eab133f4227882d99e31c.tar.gz vyos-live-build-389dd5f27861e7658f3eab133f4227882d99e31c.zip |
Allow cache directories to be symlinks as well (Closes: #741934).
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/cache.sh | 2 |
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)" ] |