From 052c8ae0768363425f807ed3a1ce895e494826a6 Mon Sep 17 00:00:00 2001 From: hayao Date: Fri, 21 Aug 2020 14:12:38 +0900 Subject: [PATCH] [update] : _cache_dirs --- build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 7d2174d9..ae4e5deb 100755 --- a/build.sh +++ b/build.sh @@ -726,8 +726,7 @@ show_settings() { # Setup custom pacman.conf with current cache directories. make_pacman_conf() { msg_debug "Use ${build_pacman_conf}" - local _cache_dirs - _cache_dirs=($(pacman -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g')) + local _cache_dirs=($(pacman -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g')) sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${_cache_dirs[@]})|g" ${build_pacman_conf} > "${work_dir}/pacman-${arch}.conf" } -- 2.11.0