diff options
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/cache.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/cache.sh b/functions/cache.sh index 3e5c7ef70..9b515db17 100755 --- a/functions/cache.sh +++ b/functions/cache.sh @@ -21,10 +21,10 @@ Restore_package_cache () if [ "$(stat --printf %d ${DIRECTORY}/)" = "$(stat --printf %d chroot/var/cache/apt/archives/)" ] then # with hardlinks - find "${DIRECTORY}" -name "*.deb" | xargs cp -fl -t chroot/var/cache/apt/archives + find "${DIRECTORY}" -name "*.deb" -print0 | xargs -0 --no-run-if-empty cp -fl -t chroot/var/cache/apt/archives else # without hardlinks - find "${DIRECTORY}" -name "*.deb" | xargs cp -t chroot/var/cache/apt/archives + find "${DIRECTORY}" -name "*.deb" -print0 | xargs -0 --no-run-if-empty cp -t chroot/var/cache/apt/archives fi fi fi |