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 numpatch=${#patch[@]}
|
||||
local source
|
||||
local src
|
||||
local array
|
||||
local counter
|
||||
|
||||
@ -367,8 +367,8 @@ get_files()
|
||||
array=( ${source[@]} ${patch[@]} )
|
||||
while [ $idx -lt ${counter} ]
|
||||
do
|
||||
source=${array[$idx]}
|
||||
[ -n "$(echo $source | grep '://')" ] && fetch_source $source
|
||||
src=${array[$idx]}
|
||||
[ -n "$(echo $src | grep '://')" ] && fetch_source $src
|
||||
let idx=idx+1
|
||||
done
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user