summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2017-12-05 13:53:29 +0100
committerGitHub <noreply@github.com>2017-12-05 13:53:29 +0100
commit79dd67588ad6299d55367b0b0c86042d19ce5f04 (patch)
treeb2a2dbe4116ee844a383ca794e4e9de590af0f20
parentb07e63b2a2369cedc9a48c86e483e892941185c3 (diff)
downloadmeta-updater-79dd67588ad6299d55367b0b0c86042d19ce5f04.tar.gz
Fix calculate_size in case $SIZE < $MIN
calculate_size had a typo that made one of the cases fail. This patch fixes it.
-rw-r--r--classes/image_types_ota.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index 9443987..1b487e7 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -28,7 +28,7 @@ calculate_size () {
28 fi 28 fi
29 29
30 if [ "$SIZE" -lt "$MIN" ]; then 30 if [ "$SIZE" -lt "$MIN" ]; then
31 $SIZE=$MIN 31 SIZE=$MIN
32 fi 32 fi
33 33
34 SIZE=`expr $SIZE \+ $EXTRA` 34 SIZE=`expr $SIZE \+ $EXTRA`