Closed Rammy61 closed 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
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.
When I change the line:
if [[ ! "Raspbian Debian" =~ "\<$lsb_id\>" ]]; then
in
and start the process again it works.
Regards.
Rammy