Skip to content

Commit

Permalink
Bugfix: Available packages are now detected correctly, thanks apotoni…
Browse files Browse the repository at this point in the history
…ck && NilsH for letting me know about it.
  • Loading branch information
wayneeseguin committed Mar 21, 2010
1 parent bdc3807 commit 4325281
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/package
Expand Up @@ -144,12 +144,13 @@ llvm() {
__rvm_pushpop
}

if [[ ! -z "$library" ]] && is_a_function ${library} ; then
${library}
else
if [[ ! -z "$library" ]] ; then
if [[ ! -z "$library" ]] ; then
if [[ " readline iconv curl openssl zlib ncurses pkgconfig gettext glib mono llvm " =~ "$library" ]] ; then
${library}
else
$rvm_scripts_path/log "error" "Package '${library}' is unknown."
fi
else
$rvm_scripts_path/log "info" "Usage: 'rvm package {install,uninstall} {openssl,zlib,readline,iconv,ncurses}'"
exit 1
fi
Expand Down

0 comments on commit 4325281

Please sign in to comment.