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:49:51 +0100 |
| commit | 3d77f5a4ef4e312c07ddb513ff1e21c6b2fb1d42 (patch) | |
| tree | 1e6053799b630c70e2d1ff983d18f6541c731432 | |
| parent | 91ad494544866512f7cfff0c67cdc02536f4242f (diff) | |
| download | meta-updater-3d77f5a4ef4e312c07ddb513ff1e21c6b2fb1d42.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 e753e0e..d21441d 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` |
