diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2017-12-05 13:53:29 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2018-03-07 11:46:30 +0100 |
commit | b120176da4122155c7591e5be0e4deb8148a4c40 (patch) | |
tree | 28918ffdf3734e30b14e50f5b4e637c57eaf330b | |
parent | 4b4fb87a79c7b6c6d787e9152758401ddf86485a (diff) | |
download | meta-updater-b120176da4122155c7591e5be0e4deb8148a4c40.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.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass index be9a017..a025576 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass | |||
@@ -32,7 +32,7 @@ calculate_size () { | |||
32 | fi | 32 | fi |
33 | 33 | ||
34 | if [ "$SIZE" -lt "$MIN" ]; then | 34 | if [ "$SIZE" -lt "$MIN" ]; then |
35 | $SIZE=$MIN | 35 | SIZE=$MIN |
36 | fi | 36 | fi |
37 | 37 | ||
38 | SIZE=`expr $SIZE \+ $EXTRA` | 38 | SIZE=`expr $SIZE \+ $EXTRA` |