From e10a1caf3046757ef323a0d24796f0589cc156f3 Mon Sep 17 00:00:00 2001 From: Simon White <69164084+houbsta@users.noreply.github.com> Date: Sat, 18 Nov 2023 12:19:39 +0100 Subject: [PATCH] Fix coding style --- linux/setup_repo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/setup_repo.sh b/linux/setup_repo.sh index e8daba7d91..2b12bd2bd0 100755 --- a/linux/setup_repo.sh +++ b/linux/setup_repo.sh @@ -11,9 +11,9 @@ fi apt --version > /dev/null if [[ $? -eq 0 ]]; then - APT_VERSION=`apt --version` - APT_MAJOR=$(echo $APT_VERSION| cut -d' ' -f 2 | cut -d'.' -f 1) - APT_MINOR=$(echo $APT_VERSION| cut -d' ' -f 2 | cut -d'.' -f 2) + APT_VERSION=$(apt --version) + APT_MAJOR=$(echo "$APT_VERSION" | cut -d' ' -f 2 | cut -d'.' -f 1) + APT_MINOR=$(echo "$APT_VERSION" | cut -d' ' -f 2 | cut -d'.' -f 2) echo "Apt version: ${APT_VERSION}" else echo "This script is only compatible with Debian based distributions which have apt, but apt is not available. Please check that your OS is supported."