mudler / pentoo

Automatically exported from code.google.com/p/pentoo
0 stars 0 forks source link

installer crashes with empty input #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using pentoo amd64 default RC2.1 (running inside virtualbox)

Steps:
Select automatic partitioning (auto-prepare)
Clear text entry box for swap size
Select "OK"

I would expect it to give the same error message as when I type '0' in to the 
box.  Instead I get this:
/usr/sbin/pentoo-installer: line 568: [: : integer expression expected
/usr/sbin/pentoo-installer: line 571: [: : integer expression expected
/usr/sbin/pentoo-installer: line 578: 11404-: syntax error: operand expected 
(error token is "-")

Ideally it would be nice to accept 0 or blank as valid inputs and have no swap 
partition, but I'm willing to accept that if a user wants that they should go 
through manual partitioning.

Original issue reported on code.google.com by domini...@gmail.com on 9 Apr 2014 at 9:20

GoogleCodeExporter commented 9 years ago
fixed, thanks!

https://code.google.com/p/pentoo/source/detail?r=5849

Original comment by sidhayn on 5 Aug 2014 at 1:14