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,13 +78,10 @@ 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="game-binary-addons"
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_REPO="https://github.com/kodi-game/repo-binary-addons.git"
git_clone ${ADDONS_REPO} ${ADDONS_DIR} ${KODI_BRANCH}
for addon in ${ADDONS_DIR}/*.*/ ; do
GAME_ADDON=$(basename ${addon})
@ -200,7 +197,6 @@ for addontxt in "game-binary-addons https://github.com/kodi-game/repo-binary-add
cleanup_pkg_tmp
done
done
rm -rf "${TMPDIR}"