"Faster" for loop is only "faster" because it was broken

This commit is contained in:
T. Joseph Carter 2015-03-06 20:29:47 -08:00
parent c0b3bc2ac4
commit c2302eba83
2 changed files with 1 additions and 2 deletions

View File

@ -76,7 +76,7 @@ libretro_fetch() {
fi
[ "$module_dir" != "." ] && echo_cmd "mkdir -p \"$WORKDIR/$module_dir\""
for i in seq 0 $num_git_urls; do
for (( i=0; i < $num_git_urls; ++i )); do
eval "git_url=\$libretro_${1}_mgit_url_$i"
eval "git_subdir=\$libretro_${1}_mgit_dir_$i"
eval "git_submodules=\$libretro_${1}_mgit_submodules_$i"

View File

@ -5,7 +5,6 @@ register_module() {
core|devkit|player)
if [ -n "$2" ]; then
eval "libretro_${1}s=\"\$libretro_${1}s $2::\""
echo "Registering $1: $2"
else
echo "register_module:Trying to register a $1 without a name"
exit 1