scripts/package in rvm-0.1.22 vs scripts/package in rvm-0.1.23

- old
+ new

@@ -39,11 +39,11 @@ __rvm_run "$package/configure" "${configure:-"./configure --prefix=$rvm_usr_path"} $configure_flags" "Configuring $package in $rvm_src_path/$package-$version." unset configure_flags - if [[ "$rvm_uninstall_flag" -eq 1 ]] || [[ "$rvm_remove_flag" -eq 1 ]] ; then + if [[ "$action" = "uninstall" ]] ; then __rvm_run "$package/make.uninstall" "/usr/bin/make uninstall" "Uninstalling $package from $rvm_usr_path" else __rvm_run "$package/make" "/usr/bin/make $rvm_make_flags" "Compiling $package in $rvm_src_path/$package-$version." __rvm_run "$package/make.install" "/usr/bin/make install" "Installing $package to $rvm_usr_path" fi @@ -151,5 +151,6 @@ $rvm_scripts_path/log "error" "Package '${library}' is unknown." fi $rvm_scripts_path/log "info" "Usage: 'rvm package {install,uninstall} {openssl,zlib,readline,iconv,ncurses}'" exit 1 fi +