Skip to content

Commit

Permalink
hide grep output in __rvm_detect_system
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Aug 21, 2012
1 parent 8361eb6 commit 58185ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/functions/utility
Expand Up @@ -399,13 +399,13 @@ __rvm_detect_system()
_system_arch="$(uname -m | awk '{if($0~"x86_64")print "x86_64"; else print "i386";}')"
if
[[ -f /etc/lsb-release ]] &&
GREP_OPTIONS="" \grep "DISTRIB_ID=Ubuntu" /etc/lsb-release
GREP_OPTIONS="" \grep "DISTRIB_ID=Ubuntu" /etc/lsb-release >/dev/null
then
_system_name="ubuntu"
_system_version="$(awk -F'=' '$1=="DISTRIB_RELEASE"{print $2}' /etc/lsb-release)"
elif
[[ -f /etc/os-release ]] &&
GREP_OPTIONS="" \grep "NAME=openSUSE" /etc/os-release
GREP_OPTIONS="" \grep "NAME=openSUSE" /etc/os-release >/dev/null
then
_system_name="opensuse"
_system_version="$(awk -F'=' '$1=="VERSION_ID"{print $2}' /etc/os-release)"
Expand Down

0 comments on commit 58185ca

Please sign in to comment.