Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
houbsta authored Nov 18, 2023
1 parent 2e6b7c9 commit e10a1ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linux/setup_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit e10a1ca

Please sign in to comment.