Skip to content

Commit

Permalink
Fix case of distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Grey committed Nov 25, 2023
1 parent c7fb2ae commit 9c31f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ check_architecture() {

function get_distro() {
# Determine the used Linux distribution.
distro=$(lsb_release -si 2>/dev/null || cat /etc/os-release | grep -oP '(?<=^ID=)\w+' || echo "unknown" | tr '[:upper:]' '[:lower:]')
echo "${distro}"
distro=$(lsb_release -si 2>/dev/null || cat /etc/os-release | grep -oP '(?<=^ID=)\w+' || echo "unknown")
echo ${distro} | tr '[:upper:]' '[:lower:]'
}

# Adds a 'sudo' prefix if sudo is available to execute the given command
Expand Down

0 comments on commit 9c31f91

Please sign in to comment.