BIOS_VERSION=`dmidecode -r bios | grep Version | awk ‘{print $2}’ | sed -e ‘s/-dev//‘`
if [[$BIOS_VERSION == “NAME01” ]]
then
echo -e “${G} TEST OK”
else
echo -e “${R} TEST NOT OK”
fi
[ "$BIOS_VERSION" = "NAME01" ]
после [ должен быть пробел обязательно.BIOS_VERSION=$(dmidecode -r bios | grep Version | awk '{print $2}' | sed -e 's/-dev//')