diff options
author | cajun-rat <phil@advancedtelematic.com> | 2017-12-05 14:06:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 14:06:42 +0100 |
commit | 1ea77e2a98e77956d687cfa6c445518938a5e809 (patch) | |
tree | b2a2dbe4116ee844a383ca794e4e9de590af0f20 | |
parent | b07e63b2a2369cedc9a48c86e483e892941185c3 (diff) | |
parent | 79dd67588ad6299d55367b0b0c86042d19ce5f04 (diff) | |
download | meta-updater-1ea77e2a98e77956d687cfa6c445518938a5e809.tar.gz |
Merge pull request #197 from benkard/patch-1
Fix calculate_size in case $SIZE < $MIN
-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 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` |