mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
scripts/image: fix build after 692b086ad0
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
84a661ff3e
commit
d036c394f2
@ -254,18 +254,23 @@ fi
|
|||||||
# remove n previous created release image
|
# remove n previous created release image
|
||||||
rm -rf $TARGET_IMG/$IMAGE_NAME.img.gz
|
rm -rf $TARGET_IMG/$IMAGE_NAME.img.gz
|
||||||
if [ -n "$BOOTLOADER" ]; then
|
if [ -n "$BOOTLOADER" ]; then
|
||||||
if [ -n "`find $HOME/.openelec/projects/$PROJECT/packages -type d -name $BOOTLOADER 2>/dev/null`" ]; then
|
|
||||||
|
BOOTLOADER_DIR=""
|
||||||
|
|
||||||
|
if [ -z "$BOOTLOADER_DIR" -a -d $HOME/.openelec/projects/$PROJECT/packages ]; then
|
||||||
BOOTLOADER_DIR=`find $HOME/.openelec/projects/$PROJECT/packages -type d -name $BOOTLOADER 2>/dev/null`
|
BOOTLOADER_DIR=`find $HOME/.openelec/projects/$PROJECT/packages -type d -name $BOOTLOADER 2>/dev/null`
|
||||||
elif [ -n "`find $HOME/.openelec/packages -type d -name $BOOTLOADER 2>/dev/null`" ]; then
|
fi
|
||||||
|
|
||||||
|
if [ -z "$BOOTLOADER_DIR" -a -d $HOME/.openelec/packages ]; then
|
||||||
BOOTLOADER_DIR=`find $HOME/.openelec/packages -type d -name $BOOTLOADER 2>/dev/null`
|
BOOTLOADER_DIR=`find $HOME/.openelec/packages -type d -name $BOOTLOADER 2>/dev/null`
|
||||||
elif [ -n "`find $PROJECT_DIR/$PROJECT/packages -type d -name $BOOTLOADER`" ]; then
|
fi
|
||||||
|
|
||||||
|
if [ -z "$BOOTLOADER_DIR" -a -d $PROJECT_DIR/$PROJECT/packages ]; then
|
||||||
BOOTLOADER_DIR=`find $PROJECT_DIR/$PROJECT/packages -type d -name $BOOTLOADER 2>/dev/null`
|
BOOTLOADER_DIR=`find $PROJECT_DIR/$PROJECT/packages -type d -name $BOOTLOADER 2>/dev/null`
|
||||||
else
|
|
||||||
BOOTLOADER_DIR=""
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$BOOTLOADER_DIR" -o ! -d "$BOOTLOADER_DIR" ]; then
|
if [ -z "$BOOTLOADER_DIR" -o ! -d "$BOOTLOADER_DIR" ]; then
|
||||||
BOOTLOADER_DIR=`find $PACKAGES -type d -name $BOOTLOADER 2>/dev/null`
|
BOOTLOADER_DIR=`find $PACKAGES -type d -name $BOOTLOADER 2>/dev/null`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$BOOTLOADER_DIR"/files ]; then
|
if [ -d "$BOOTLOADER_DIR"/files ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user