pocopico / tinycore-redpill

GNU General Public License v3.0
2.17k stars 636 forks source link

fix: use -BM flag with df to avoid float comparison #357

Closed kamzil closed 1 year ago

kamzil commented 1 year ago

When extending TCRP partition beyond 1GB, the df call displayed gigabytes instead of megabytes, leading to float comparison not supported by sh. This caused free space check to fail with an error like "./rploader.sh: line 3191: [: 2.9: integer expression expected". This can be avoided by using -BM flag with df, and removing call to cut.