chore: refactor loop variable name

Component: pkgctl build
Signed-off-by: Christian Heusel <christian@heusel.eu>
This commit is contained in:
Christian Heusel 2023-07-21 11:37:27 +02:00
parent 0669315821
commit 6f106e7cd6
No known key found for this signature in database
GPG Key ID: C047D4F328B52585
1 changed files with 5 additions and 5 deletions

View File

@ -129,7 +129,7 @@ pkgctl_build() {
local WORKER_SLOT= local WORKER_SLOT=
# variables # variables
local loop_arch path pkgbase pkgrepo source local _arch path pkgbase pkgrepo source
while (( $# )); do while (( $# )); do
case $1 in case $1 in
@ -318,11 +318,11 @@ pkgctl_build() {
if in_array any "${arch[@]}"; then if in_array any "${arch[@]}"; then
BUILD_ARCH=("${_arch[0]}") BUILD_ARCH=("${_arch[0]}")
else else
for loop_arch in "${arch[@]}"; do for _arch in "${arch[@]}"; do
if in_array "${loop_arch}" "${_arch[@]}"; then if in_array "${_arch}" "${_arch[@]}"; then
BUILD_ARCH+=("$loop_arch") BUILD_ARCH+=("$_arch")
else else
warning 'invalid architecture, not building for: %s' "${loop_arch}" warning 'invalid architecture, not building for: %s' "${_arch}"
fi fi
done done
fi fi