OSDN Git Service

[fix] : Fixed pacman.conf for each channel.
authorhayao <shun819.mail@gmail.com>
Thu, 30 Apr 2020 09:39:45 +0000 (18:39 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 30 Apr 2020 09:39:45 +0000 (18:39 +0900)
build.sh

index 268987c..6c16391 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -372,7 +372,8 @@ prepare_build() {
     }
     if [[ ${rebuild} = false ]]; then
         # If there is pacman.conf for each channel, use that for building
-        [[ -f "${script_path}/channels/${channel_name}/pacman-${arch}.conf" ]] && build_pacman_conf="${script_path}/channels/${channel_name}/pacman.conf"
+        if [[ -f "${script_path}/channels/${channel_name}/pacman-${arch}.conf" ]]; then
+            build_pacman_conf="${script_path}/channels/${channel_name}/pacman-${arch}.conf"
 
 
         # If there is config for each channel. load that.