mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
update_retroplayer-addons: drop loop over single item
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
38a137c923
commit
69a7660940
@ -78,15 +78,12 @@ mkdir -p "${TMPDIR}"
|
|||||||
|
|
||||||
. "${MY_DIR}/update_common_functions"
|
. "${MY_DIR}/update_common_functions"
|
||||||
|
|
||||||
# addons
|
ADDONS="game-binary-addons"
|
||||||
for addontxt in "game-binary-addons https://github.com/kodi-game/repo-binary-addons.git ${KODI_BRANCH}" ; do
|
ADDONS_DIR="${ADDONS}.git"
|
||||||
ADDONS=$(echo $addontxt | awk '{print $1}')
|
ADDONS_REPO="https://github.com/kodi-game/repo-binary-addons.git"
|
||||||
ADDONS_DIR="${ADDONS}.git"
|
git_clone ${ADDONS_REPO} ${ADDONS_DIR} ${KODI_BRANCH}
|
||||||
ADDONS_REPO=$(echo $addontxt | awk '{print $2}')
|
|
||||||
ADDONS_BRANCH=$(echo $addontxt | awk '{print $3}')
|
|
||||||
git_clone ${ADDONS_REPO} ${ADDONS_DIR} ${ADDONS_BRANCH}
|
|
||||||
|
|
||||||
for addon in ${ADDONS_DIR}/*.*/ ; do
|
for addon in ${ADDONS_DIR}/*.*/ ; do
|
||||||
GAME_ADDON=$(basename ${addon})
|
GAME_ADDON=$(basename ${addon})
|
||||||
|
|
||||||
[[ "${GAME_ADDON}" =~ ^game. ]] || continue
|
[[ "${GAME_ADDON}" =~ ^game. ]] || continue
|
||||||
@ -199,7 +196,6 @@ for addontxt in "game-binary-addons https://github.com/kodi-game/repo-binary-add
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cleanup_pkg_tmp
|
cleanup_pkg_tmp
|
||||||
done
|
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -rf "${TMPDIR}"
|
rm -rf "${TMPDIR}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user