brewpi-remix / brewpi-tools-rmx

START HERE: BrewPi Remix Tools
https://www.brewpiremix.com
GNU General Public License v3.0
17 stars 6 forks source link

Install Crash on Jessie #31

Closed lbussy closed 4 years ago

lbussy commented 4 years ago

Debian Jessie, crash during bootstrap:

The time is currently set to Wed Apr  8 11:34:17 CDT 2020.
Is this correct? [Y/n]:

Fixing any broken installations before proceeding.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
bash: line 447: "1586363659" - "1586362526": syntax error: operand expected (error token is ""1586363659" - "1586362526"")

Crash is in the routine which checks for the last update (which is ironic):

https://github.com/brewpi-remix/brewpi-tools-rmx/blob/6ef1cba04fb080b7a57f7a315a01ef7fb2a64983/bootstrap.sh#L445-L451

lbussy commented 4 years ago

The issue appears to be caused by treating $lastUpdate and $nowTime the same as one would a string. Removing the quotes and the $-prefix cleared it up. Interesting that this was not an issue on Stretch or Buster.

Resolved in devel, will merge eventually.