summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch-nspawn.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index a0e24dc..c2bce76 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -55,7 +55,7 @@ shift 1
pacconf_cmd=$(command -v pacman-conf || command -v pacconf)
if (( ${#cache_dirs[@]} == 0 )); then
- mapfile -t cache_dirs < <($pacconf_cmd CacheDir)
+ mapfile -t cache_dirs < <($pacconf_cmd --config "${pac_conf:-$working_dir/etc/pacman.conf}" CacheDir)
fi
# shellcheck disable=2016