From d5dbbac936d646772dee6862e896b09d4fc686d0 Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Fri, 15 Jun 2018 13:40:24 +0200 Subject: [PATCH] x230: x230_before_first_install: bash syntax fixes --- x230/x230_before_first_install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x230/x230_before_first_install.sh b/x230/x230_before_first_install.sh index 7921012..66fad4c 100755 --- a/x230/x230_before_first_install.sh +++ b/x230/x230_before_first_install.sh @@ -59,11 +59,11 @@ if [[ $BIOS_VENDOR = *"coreboot"* ]] ; then fi 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 - 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 echo "installed BIOS version is ${bios_major}.${bios_minor}." echo "That's not the latest version, but the EC version is."