We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c83874 commit d6b7a54Copy full SHA for d6b7a54
functions/cache.sh
@@ -21,10 +21,10 @@ Restore_package_cache ()
21
if [ "$(stat --printf %d ${DIRECTORY}/)" = "$(stat --printf %d chroot/var/cache/apt/archives/)" ]
22
then
23
# with hardlinks
24
- 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
25
else
26
# without hardlinks
27
- 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
28
fi
29
30
0 commit comments