Skip to content

Commit

Permalink
Added shell to output.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Feb 5, 2010
1 parent 7270d78 commit ec46967
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/utility
Expand Up @@ -26,10 +26,11 @@ __rvm_db() {
__rvm_info() {
if [[ ! -z "$(which ruby 2>/dev/null)" ]] ; then full_version=$(ruby -v) ; fi

cat <<Info
echo -e "system:\n uname: \"$(uname -a)\""
if [[ ! -z "$ZSH_VERSION" ]] ; then echo -e " shell: \"zsh\"\n version: \"$ZSH_VERSION\"" ; fi
if [[ ! -z "$BASH_VERSION" ]] ; then echo -e " shell: \"bash\"\n version: \"$BASH_VERSION\"" ; fi

system:
uname: "$(uname -a)"
cat <<Info
ruby:
interpreter: "$(echo $full_version | awk '{print $1}')"
Expand All @@ -55,7 +56,7 @@ environment:
MY_RUBY_HOME: "$MY_RUBY_HOME"
IRBRC: "$IRBRC"
Info
if [[ ! -z "$MAGLEV_HOME" ]] ; then echo " MAGLEV_HOME: $MAGLEV_HOME" ; fi
if [[ ! -z "$MAGLEV_HOME" ]] ; then echo -e " MAGLEV_HOME: \"$MAGLEV_HOME\"" ; fi

unset full_version
}
Expand Down

0 comments on commit ec46967

Please sign in to comment.