mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
scripts/create_addon: simplify PROJECT selection, support DEVICE
This commit is contained in:
parent
5e21d21da8
commit
cf9dcd27c1
@ -31,13 +31,8 @@ if [ -n "$PKG_ARCH" -a ! "$PKG_ARCH" = "any" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$PKG_ADDON_PROJECTS" -a ! "$PKG_ADDON_PROJECTS" = "any" ]; then
|
if [ -n "$PKG_ADDON_PROJECTS" -a ! "$PKG_ADDON_PROJECTS" = "any" ]; then
|
||||||
for _PROJECT in $PKG_ADDON_PROJECTS ; do
|
if ! listcontains "${PKG_ADDON_PROJECTS}" "${DEVICE:-${PROJECT}}"; then
|
||||||
if [ "$_PROJECT" = "$PROJECT" ] ; then
|
echo "*** ERROR: $PKG_ADDON_ID: '${DEVICE:-${PROJECT}}' not supported ***"
|
||||||
PROJECT_SUPPORTED="yes"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ ! "$PROJECT_SUPPORTED" = "yes" ] ; then
|
|
||||||
echo "*** ERROR: $PKG_ADDON_ID: '$PROJECT' not supported ***"
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user