Skip to content

Commit

Permalink
Fix rvm binary paths for debian versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomclegg committed Mar 10, 2016
1 parent 904ab04 commit bc4bc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/setup
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ function detect_system() {
)"
elif [[ -f /etc/debian_version ]]; then
system_name="debian"
system_version="$(awk -F. '{print $1"."$2}' /etc/debian_version)"
system_version="$(awk -F. '{print $1}' /etc/debian_version)"
system_arch="$( dpkg --print-architecture )"
elif [[ -f /etc/os-release ]] && [[ "$(< /etc/os-release)" == *"ID=debian"* ]]; then
system_name="debian"
system_version="$(awk -F'=' '$1=="VERSION_ID"{gsub(/"/,"");print $2}' /etc/os-release | awk -F. '{print $1"."$2}')" #'
system_version="$(awk -F'=' '$1=="VERSION_ID"{gsub(/"/,"");print $2}' /etc/os-release | awk -F. '{print $1}')" #'
system_arch="$( dpkg --print-architecture )"
elif [[ -f /etc/fedora-release ]]; then
system_name="fedora"
Expand Down

0 comments on commit bc4bc14

Please sign in to comment.