mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/path: check for multiple package folders
This commit is contained in:
parent
99a5cbbaf6
commit
47f270d742
@ -54,7 +54,13 @@ SED="sed -i"
|
||||
PKG_LONGDESC=""
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
[ -n "$1" ] && PKG_DIR=`find $PACKAGES -type d -name $1 2>/dev/null`
|
||||
if [ -n "$1" ]; then
|
||||
PKG_DIR=`find $PACKAGES -type d -name $1 2>/dev/null`
|
||||
if [[ $PKG_DIR = *$'\n'* ]]; then
|
||||
echo -e "Error - multiple package folders:\n$PKG_DIR"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
[ -r $PKG_DIR/meta ] && . $PKG_DIR/meta
|
||||
[ "$PKG_IS_ADDON" = "yes" ] && PKG_ADDON_ID="`echo $PKG_SECTION | sed 's,/,.,g'`.$PKG_NAME"
|
||||
|
Loading…
x
Reference in New Issue
Block a user