Browse Source

x230: x230_before_first_install: bash syntax fixes

pull/35/head
Martin Kepplinger 6 years ago
parent
commit
d5dbbac936
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      x230/x230_before_first_install.sh

+ 3
- 3
x230/x230_before_first_install.sh View File

@ -59,11 +59,11 @@ if [[ $BIOS_VENDOR = *"coreboot"* ]] ; then
fi fi
BIOS_VERSION=$(dmidecode -s bios-version | grep -o '[1-2].[0-7][0-9]') BIOS_VERSION=$(dmidecode -s bios-version | grep -o '[1-2].[0-7][0-9]')
bios_major=$(echo $BIOS_VERSION | cut -d. -f1)
bios_minor=$(echo $BIOS_VERSION | cut -d. -f2)
bios_major=$(echo "$BIOS_VERSION" | cut -d. -f1)
bios_minor=$(echo "$BIOS_VERSION" | cut -d. -f2)
if [ "${bios_minor}" -eq "72" ] ; then if [ "${bios_minor}" -eq "72" ] ; then
echo "latest BIOS version installed. Nothing to do."
echo -e "${GREEN}latest BIOS version${NC} installed. Nothing to do."
elif [ "${bios_minor}" -ge "60" ] ; then elif [ "${bios_minor}" -ge "60" ] ; then
echo "installed BIOS version is ${bios_major}.${bios_minor}." echo "installed BIOS version is ${bios_major}.${bios_minor}."
echo "That's not the latest version, but the EC version is." echo "That's not the latest version, but the EC version is."


Loading…
Cancel
Save