nazarimilad / iota-node

A CLI and TUI to install and manage a full IOTA node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalid arithmetic operator / unbound variable

antennabuilder opened this issue · comments

When i run the script:
▶ ./iota-node.sh

The dialog opens, and I agree to install. It exits and I get the following errors:
./iota-node.sh: line 11: 7.6+1: syntax error: invalid arithmetic operator (error token is ".6+1")
./iota-node.sh: line 340: AMOUNT_OF_RAM: unbound variable

System Info:
OS: CentOS Linux 7 (Core) x86_64
Kernel: 3.10.0-862.2.3.el7.x86_64
CPU: QEMU Virtual version 1.5.3 (2) @ 2.
GPU: Cirrus Logic GD 5446
Memory: 363MiB / 7822MiB

I think I understand what the problem is: the program is trying to make the calculation amount of ram = 7.6 + 1 but the problem is that bash does not support floating-point arithmetic. So 7.6 has to be first rounded to 8 before it's increased to 8 (zero based). I've fixed it with the new release v2.6.2. Thanks for the bug report :)

Did this solve your issue?

This solved that specific issue, but i've encountered a new issue further down the installation. Would you like me to open a new issue, continue it here, or contact you directly?

Thanks for your reply and work.

I think it would be better to open a new issue, so it's more visible for other people too.