update_retroplayer-addons: drop loop over single item

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2019-07-12 14:17:33 +02:00
parent 2ae4537216
commit 02781b9cbf

View File

@ -78,15 +78,12 @@ mkdir -p "${TMPDIR}"
. "${MY_DIR}/update_common_functions"
# addons
for addontxt in "game-binary-addons https://github.com/kodi-game/repo-binary-addons.git ${KODI_BRANCH}" ; do
ADDONS=$(echo $addontxt | awk '{print $1}')
ADDONS_DIR="${ADDONS}.git"
ADDONS_REPO=$(echo $addontxt | awk '{print $2}')
ADDONS_BRANCH=$(echo $addontxt | awk '{print $3}')
git_clone ${ADDONS_REPO} ${ADDONS_DIR} ${ADDONS_BRANCH}
ADDONS="game-binary-addons"
ADDONS_DIR="${ADDONS}.git"
ADDONS_REPO="https://github.com/kodi-game/repo-binary-addons.git"
git_clone ${ADDONS_REPO} ${ADDONS_DIR} ${KODI_BRANCH}
for addon in ${ADDONS_DIR}/*.*/ ; do
for addon in ${ADDONS_DIR}/*.*/ ; do
GAME_ADDON=$(basename ${addon})
[[ "${GAME_ADDON}" =~ ^game. ]] || continue
@ -199,7 +196,6 @@ for addontxt in "game-binary-addons https://github.com/kodi-game/repo-binary-add
fi
cleanup_pkg_tmp
done
done
rm -rf "${TMPDIR}"