Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Heusel <christian@heusel.eu>2023-07-21 11:37:27 +0200
committerChristian Heusel <christian@heusel.eu>2023-10-02 11:37:06 +0200
commit6f106e7cd6c19d8666d25676afc8dcc5975d124b (patch)
treebf37efc8443df9c104b62041f7f44ed4eb2e5c7c /src
parent0669315821ea0af00fcc2c6271eb474174173e0a (diff)
chore: refactor loop variable name
Component: pkgctl build Signed-off-by: Christian Heusel <christian@heusel.eu>
Diffstat (limited to 'src')
-rw-r--r--src/lib/build/build.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh
index f2549f2..d6b530d 100644
--- a/src/lib/build/build.sh
+++ b/src/lib/build/build.sh
@@ -129,7 +129,7 @@ pkgctl_build() {
local WORKER_SLOT=
# variables
- local loop_arch path pkgbase pkgrepo source
+ local _arch path pkgbase pkgrepo source
while (( $# )); do
case $1 in
@@ -318,11 +318,11 @@ pkgctl_build() {
if in_array any "${arch[@]}"; then
BUILD_ARCH=("${_arch[0]}")
else
- for loop_arch in "${arch[@]}"; do
- if in_array "${loop_arch}" "${_arch[@]}"; then
- BUILD_ARCH+=("$loop_arch")
+ for _arch in "${arch[@]}"; do
+ if in_array "${_arch}" "${_arch[@]}"; then
+ BUILD_ARCH+=("$_arch")
else
- warning 'invalid architecture, not building for: %s' "${loop_arch}"
+ warning 'invalid architecture, not building for: %s' "${_arch}"
fi
done
fi