Fix name overload in get_files
The variable source was being overloaded by a local variable of the same name causing the loop to malfunction and not retrieve all sources.
This commit is contained in:
parent
1a1be6bc92
commit
c7ccc73f1e
@ -358,7 +358,7 @@ get_files()
|
|||||||
{
|
{
|
||||||
local numsource=${#source[@]}
|
local numsource=${#source[@]}
|
||||||
local numpatch=${#patch[@]}
|
local numpatch=${#patch[@]}
|
||||||
local source
|
local src
|
||||||
local array
|
local array
|
||||||
local counter
|
local counter
|
||||||
|
|
||||||
@ -367,8 +367,8 @@ get_files()
|
|||||||
array=( ${source[@]} ${patch[@]} )
|
array=( ${source[@]} ${patch[@]} )
|
||||||
while [ $idx -lt ${counter} ]
|
while [ $idx -lt ${counter} ]
|
||||||
do
|
do
|
||||||
source=${array[$idx]}
|
src=${array[$idx]}
|
||||||
[ -n "$(echo $source | grep '://')" ] && fetch_source $source
|
[ -n "$(echo $src | grep '://')" ] && fetch_source $src
|
||||||
let idx=idx+1
|
let idx=idx+1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user