Add warning about missing pacman host cache

This commit is contained in:
2022-06-30 06:38:05 +02:00
parent 15d2b54eb7
commit 24616ec1db

View File

@@ -21,6 +21,8 @@ gzip -k -f -v "${tmpdir}/dotfiles.tar"
test_ares() {
if [[ -d "/var/cache/pacman/pkg/" ]] ; then
dockeropts=(-v "/var/cache/pacman/pkg/:/var/cache/pacman/pkg_host/")
else
echo "Warning: /var/cache/pacman/pkg/ does not exist. Create it to speed up multiple runs" >&2
fi
docker pull docker.io/library/archlinux:base
docker run \