From 19e5202131f70152eccc0ce6fc42362c9094fc9f Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 11 Jan 2022 11:16:26 +0800 Subject: [PATCH] rk: scripts/mkimg: Fix search mkimage type will return an exit status of false when the name is not found. Signed-off-by: Tao Huang Change-Id: Ia5f719550c5e6eab3373f6d45c63f5f77d29b688 --- scripts/mkimg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mkimg b/scripts/mkimg index c2df388591ce..d3e8d0cd7966 100755 --- a/scripts/mkimg +++ b/scripts/mkimg @@ -113,7 +113,7 @@ repack_boot_img() check_mkimage() { - MKIMAGE=$(type -path ${MKIMAGE}) + MKIMAGE=$(type -p ${MKIMAGE} || true) if [ -z "${MKIMAGE}" ]; then # Doesn't exist echo '"mkimage" command not found - U-Boot images will not be built' >&2