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:
Tom G. Christensen 2009-12-19 16:31:19 +01:00
parent 1a1be6bc92
commit c7ccc73f1e

View File

@ -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
}