summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/magicbox-image.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/magicbox-image.bbclass b/classes/magicbox-image.bbclass
index 05de28b76b..c75e69cac2 100644
--- a/classes/magicbox-image.bbclass
+++ b/classes/magicbox-image.bbclass
@@ -1,6 +1,6 @@
magicbox_gen_images() {
# find latest kernel
- KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/uImage* | tail -1`
+ KERNEL=`ls -tr ${DEPLOY_DIR_IMAGE}/uImage* | tail -n 1`
if [ -z "$KERNEL" ]; then
oefatal "No kernel found in ${DEPLOY_DIR_IMAGE}. Exiting !"
exit 1