From 9af42d20b7a13498df871d3383f75e34934e8203 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Thu, 29 Oct 2015 08:49:20 +0100 Subject: update.sh: fix debug aka recovery mode only operation The following commit: f463f754048ebc3325025f0e1506b03cf14203a5 update.sh: use moduletype specific folder for output files moved the output folder check above the module type selection which now fails in case of debug aka recovery mode only operation with the following error: does not exist, exiting This patch fixes this by not erring out in the debug aka recovery mode only operation if no output folder is set. --- recipes/images/files/library/imx6/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/images/files/library/imx6/update.sh') diff --git a/recipes/images/files/library/imx6/update.sh b/recipes/images/files/library/imx6/update.sh index 509dbbe..4f4b11e 100755 --- a/recipes/images/files/library/imx6/update.sh +++ b/recipes/images/files/library/imx6/update.sh @@ -96,7 +96,7 @@ if [ "$OUT_DIR" = "" ] && [ "$UBOOT_RECOVERY" = "0" ] ; then fi # is OUT_DIR an existing directory? -if [ ! -d "$OUT_DIR" ] ; then +if [ ! -d "$OUT_DIR" ] && [ "$UBOOT_RECOVERY" = "0" ] ; then echo "$OUT_DIR" "does not exist, exiting" exit 1 fi -- cgit v1.2.3