mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #1022 from opdenkamp/dupe-check-fix
fixed: don't match /source/ subdirectories in the PKG_DIR check
This commit is contained in:
commit
c5a076459f
@ -55,7 +55,7 @@ SED="sed -i"
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
PKG_DIR=`find $PACKAGES -type d -name $1 2>/dev/null`
|
||||
PKG_DIR=`find $PACKAGES -type d -name $1 ! -wholename \*\/source\/\* 2>/dev/null`
|
||||
if [ "${PKG_DIR}" != "$(echo $PKG_DIR | tr -d '\n')" ]; then
|
||||
echo "Error - multiple package folders:"
|
||||
echo "$PKG_DIR"
|
||||
|
Loading…
x
Reference in New Issue
Block a user