summaryrefslogtreecommitdiff
path: root/recipes/images/files/colibri-vf/update.sh
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-04-19 16:24:13 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-06-24 00:51:05 +0200
commit1830cee8ec7887dbfadd8e6cac0e73ca5be4c06b (patch)
tree06998740f92f4091c725beecb5cf37949fa9534d /recipes/images/files/colibri-vf/update.sh
parent82057d57480e53d339c8b6801169ad1509e3cb8b (diff)
update.sh: do not error out during mkfs.ubifs/cbootimage tests
If executing the command fails, the exit code will be <> 1 which leads to an imeadiate exit (due to set -e). Avoid exiting by adding "|| true" to the sanity check commands. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes/images/files/colibri-vf/update.sh')
-rwxr-xr-xrecipes/images/files/colibri-vf/update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/images/files/colibri-vf/update.sh b/recipes/images/files/colibri-vf/update.sh
index 38f89d7..05af9ca 100755
--- a/recipes/images/files/colibri-vf/update.sh
+++ b/recipes/images/files/colibri-vf/update.sh
@@ -148,7 +148,7 @@ then
fi
#sanity check, can we execute mkfs.ubifs, e.g. see the help text?
-CNT=`sudo $LOCPATH/mkfs.ubifs -h | grep -c space-fixup`
+CNT=`sudo $LOCPATH/mkfs.ubifs -h | grep -c space-fixup || true`
if [ "$CNT" -eq 0 ] ; then
echo "The program mkfs.ubifs can not be executed or does not provide --space-fixup"
echo "option."