$ 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).
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).