index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Christian Heusel <christian@heusel.eu> | 2023-06-15 11:05:12 +0200 |
---|---|---|
committer | Christian Heusel <christian@heusel.eu> | 2023-07-05 18:17:32 +0200 |
commit | 720b7c9b0524fd2dfb8b811985b55237ffe2de69 (patch) | |
tree | 0c9b63b915b9440e9d82324c185ba2af21ad07a4 /src/lib | |
parent | 0ea7e9e0e586d092bcc991789dbf23b5981204a3 (diff) |
-rw-r--r-- | src/lib/build/build.sh | 10 |
diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh index aa2293c..ecdeaad 100644 --- a/src/lib/build/build.sh +++ b/src/lib/build/build.sh @@ -129,7 +129,7 @@ pkgctl_build() { local WORKER_SLOT= # variables - local path pkgbase pkgrepo source + local loop_arch path pkgbase pkgrepo source while (( $# )); do case $1 in @@ -318,7 +318,13 @@ pkgctl_build() { if in_array any "${arch[@]}"; then BUILD_ARCH=("${_arch[0]}") else - BUILD_ARCH+=("${arch[@]}") + for loop_arch in "${arch[@]}"; do + if in_array "${loop_arch}" "${_arch[@]}"; then + BUILD_ARCH+=("$loop_arch") + else + warning 'invalid architecture, not building for: %s' "${loop_arch}" + fi + done fi fi |