SBFspot / sbfspot-config

Installation/Configuration tool for SBFspot on Raspberry Pi
43 stars 11 forks source link

No install of SBFspot on 2023-12-05-raspios-bullseye-armhf-lite.img.xz #70

Closed Rammy61 closed 5 months ago

Rammy61 commented 5 months ago

I want to install SBFspot on a RPiZero-W but the install process is stopped because the software thinks I am using a wrong image.

Screenshot_2024-01-31_19-16-37

When I change the line:

if [[ ! "Raspbian Debian" =~ "\<$lsb_id\>" ]]; then

in

`if [[ ! "Raspbian" =~ "$lsb_id" ]]; then`

and start the process again it works.

Regards.

Rammy

sbf- commented 5 months ago

Don't know what's happening on your system, but this piece of code works as intended;

pi@raspi32:~ $ re_id="\<Debian\>"
pi@raspi32:~ $ if [[ ! "Raspbian Debian" =~ $re_id ]]; then echo "NOK"; else echo "OK"; fi
OK
pi@raspi32:~ $ re_id="\<Raspbian\>"
pi@raspi32:~ $ if [[ ! "Raspbian Debian" =~ $re_id ]]; then echo "NOK"; else echo "OK"; fi
OK
pi@raspi32:~ $ re_id="\<Unknown\>"
pi@raspi32:~ $ if [[ ! "Raspbian Debian" =~ $re_id ]]; then echo "NOK"; else echo "OK"; fi
NOK

However, this doesn't:

pi@raspi32:~ $ if [[ ! "Raspbian Debian" =~ "\<Raspbian\>" ]]; then echo "NOK"; else echo "OK"; fi
NOK