summaryrefslogtreecommitdiff
path: root/recipes/images/files/library/tegra/update.sh
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
commit9af42d20b7a13498df871d3383f75e34934e8203 (patch)
treea670844555a0a4f4ce796061deb0485f9e4598d2 /recipes/images/files/library/tegra/update.sh
parente3b7e82d309696f8982101b92bfa773bc41eacb7 (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.
Diffstat (limited to 'recipes/images/files/library/tegra/update.sh')
-rwxr-xr-xrecipes/images/files/library/tegra/update.sh2
1 files changed, 1 insertions, 1 deletions
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