mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Mkimage: Add forgotten -f to check for file available
This commit is contained in:
@@ -233,9 +233,9 @@ elif [ "$BOOTLOADER" = "u-boot" ]; then
|
||||
fi
|
||||
|
||||
echo "image: installing u-boot bootloader..."
|
||||
if [ "$RELEASE_DIR/3rdparty/bootloader/SPL" ]; then
|
||||
if [ -f "$RELEASE_DIR/3rdparty/bootloader/SPL" ]; then
|
||||
dd if="$RELEASE_DIR/3rdparty/bootloader/SPL" of="$DISK" bs=512 seek=2 conv=notrunc
|
||||
elif [ "$RELEASE_DIR/3rdparty/bootloader/u-boot.imx" ]; then
|
||||
elif [ -f "$RELEASE_DIR/3rdparty/bootloader/u-boot.imx" ]; then
|
||||
dd if="$RELEASE_DIR/3rdparty/bootloader/u-boot.imx" of="$DISK" bs=512 seek=2 conv=notrunc
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user