n1kdo / n1mm_view

Real-time statistics viewer for N1MM+ on Field Day
BSD 2-Clause "Simplified" License
32 stars 13 forks source link

rpi_install.sh gives error on [[ not found #48

Closed craigpl closed 1 year ago

craigpl commented 1 year ago

Error when running rpi_install.sh file:

$ sudo ./rpi_install.sh ./rpi_install.sh: 4: [[: not found

Script fails in the beginning around the first IF statement with two open square brackets. Maybe I'm running the wrong shell. Maybe we should include the shell on the first line of the script. Changing to use the Bash shell and removing one set of square brackets seems to fix this.

Note: this could be due to the user using the wrong shell. Environment used: Raspberry Pi (Bullseye 32-bit full install). Default shell (bash).

craigpl commented 1 year ago

I've created a PR for this issue. /craig kc0dmf