index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Brian Bidulock <bidulock@openss7.org> | 2017-11-18 22:53:37 -0700 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-29 09:02:49 +0200 |
commit | ae781c2d58cd218cde64a4e725cf92c2a2b1850d (patch) | |
tree | ae78f7620d67a5c72f07b0a747ea67d1fbc9e1b3 /arch-nspawn.in | |
parent | 48eadbeb61dc5401334224ed1b8f566808e9ec64 (diff) |
-rw-r--r-- | arch-nspawn.in | 6 |
diff --git a/arch-nspawn.in b/arch-nspawn.in index 8a3989e..a6e8b19 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -53,7 +53,11 @@ shift 1 [[ -z $working_dir ]] && die 'Please specify a working directory.' if [[ -z $cache_dir ]]; then - cache_dirs=($(pacman -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g')) + if [[ -z $pac_conf ]]; then + cache_dirs=($(pacman --config "$working_dir/etc/pacman.conf" -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g')) + else + cache_dirs=($(pacman --config "$pac_conf" -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g')) + fi else cache_dirs=("$cache_dir") fi |