From 39a66e481183fb814cb44ee9652cf7cd42bb1de1 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 13 Aug 2013 16:18:18 -0500 Subject: [PATCH] bug: protect against undefined conf_uboot_no_uenvcmd Signed-off-by: Robert Nelson --- mk_mmc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 06c3879..2d58c27 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1531,7 +1531,12 @@ process_dtb_conf () { if [ "${conf_uboot_use_uenvcmd}" ] ; then conf_entrypt="uenvcmd" else - conf_entrypt="${conf_uboot_no_uenvcmd}" + if [ ! "x${conf_uboot_no_uenvcmd}" = "x" ] ; then + conf_entrypt="${conf_uboot_no_uenvcmd}" + else + echo "Error: [conf_uboot_no_uenvcmd] not defined, stopping..." + exit + fi fi }