mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
config/path: check for multiple package folders (attempt #3)
This commit is contained in:
parent
9c9bb9b674
commit
9385e6bd43
@ -56,8 +56,9 @@ SED="sed -i"
|
|||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
PKG_DIR=`find $PACKAGES -type d -name $1 2>/dev/null`
|
PKG_DIR=`find $PACKAGES -type d -name $1 2>/dev/null`
|
||||||
if [ $PKG_DIR = *$'\n'* ]; then
|
if [ "${PKG_DIR}" != "$(echo $PKG_DIR | tr -d '\n')" ]; then
|
||||||
echo -e "Error - multiple package folders:\n$PKG_DIR"
|
echo "Error - multiple package folders:"
|
||||||
|
echo "$PKG_DIR"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user