juribeparada / MMDVM_HS

MMDVM HotSpot: firmware for ZUMspot or MMDVM_HS based boards (D-Star, DMR, YSF, P25, NXDN and POCSAG)
GNU General Public License v2.0
345 stars 141 forks source link

install_fw_rpi.sh -- syntax error line 29 #148

Open ghost opened 2 years ago

ghost commented 2 years ago

The script command on line 29 throws a syntax error. The IF check is "=" rather than "==" for the string compare.

Current command:

Download latest firmware

if [ $1 = "beta" ]; then

Should be:

if [ $1 == "beta" ]; then

-- Found this while attempting to update an older ZUMSPOT MMDVM board's firmware. Manually updated the script and was able to get a successful firmware update with that minor change.