kernel-overlays-setup: fix ls error in journal if .config/firmware doesn't exist

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2018-12-15 14:08:22 +01:00
parent 191b1a3d65
commit 23cc2e1b9b

View File

@ -74,7 +74,7 @@ if [ -d "${OVERLAY_CONFIG_DIR}" ] ; then
fi
fi
if [ -d "${USER_FIRMWARE_DIR}" -a -n "$(ls ${USER_FIRMWARE_DIR})" ] ; then
if [ -d "${USER_FIRMWARE_DIR}" ] && [ -n "$(ls ${USER_FIRMWARE_DIR})" ] ; then
if cp -rfs "${USER_FIRMWARE_DIR}"/* "${FIRMWARE_DIR}" ; then
log "added firmware from ${USER_FIRMWARE_DIR}"
else