Skip to content

Commit

Permalink
fix detecting 32bit ubuntu platform, fix #1246
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 22, 2012
1 parent bca1101 commit b8324b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/functions/utility
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ __rvm_detect_system()
case "$(uname)" in
(Linux)
#TODO: add support for arm??
_system_arch="$(uname -m | awk '{if($0~"^i[[:digit:]]86") print "i386"; else print;}')"
_system_arch="$(uname -m | awk '{if($0~"^i[34567]86") print "i386"; else print;}')"
if
[[ -f /etc/lsb-release ]] &&
GREP_OPTIONS="" \grep "DISTRIB_ID=Ubuntu" /etc/lsb-release >/dev/null
Expand Down Expand Up @@ -463,7 +463,7 @@ __rvm_detect_system()
_system_name="osx"
_system_version="$(sw_vers -productVersion)"
_system_version="${_system_version%.*}" # only major.minor - teeny is ignored
_system_arch="$(uname -m | awk '{if($0~"^i[[:digit:]]86") print "i386"; else print;}')"
_system_arch="$(uname -m | awk '{if($0~"^i[34567]86") print "i386"; else print;}')"
;;
(*)
return 1
Expand Down

0 comments on commit b8324b6

Please sign in to comment.