summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-10-29 08:49:20 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-10-29 08:49:20 +0100
commit7b5b2de02017cedc0926aa4ea9adf97f197b9328 (patch)
tree3f67f5bb0ddfbfab7215356097d7f6a00d36b8bc
parentbfc27c18c38e2fc3a9b2579a8921c55701e5d8ad (diff)
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.
-rwxr-xr-xrecipes/images/files/colibri-vf/update.sh2
-rwxr-xr-xrecipes/images/files/library/imx6/update.sh2
-rwxr-xr-xrecipes/images/files/library/tegra/update.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/recipes/images/files/colibri-vf/update.sh b/recipes/images/files/colibri-vf/update.sh
index 1205017..5ac77fb 100755
--- a/recipes/images/files/colibri-vf/update.sh
+++ b/recipes/images/files/colibri-vf/update.sh
@@ -105,7 +105,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
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
diff --git a/recipes/images/files/library/tegra/update.sh b/recipes/images/files/library/tegra/update.sh
index 92ddb27..482fd00 100755
--- a/recipes/images/files/library/tegra/update.sh
+++ b/recipes/images/files/library/tegra/update.sh
@@ -129,7 +129,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