Skip to content

Commit

Permalink
clean gemset pristine, fix #907
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed May 29, 2012
1 parent 3e8d328 commit da106ae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/gemsets
Original file line number Diff line number Diff line change
Expand Up @@ -924,19 +924,18 @@ gemset_pristine()

while read _gem _version _platforms
do
printf "%b" "${_gem}-${_version} " | tee /dev/stderr
printf "%b" "${_gem}-${_version} "
if ! gem pristine ${_gem} --version ${_version} >/dev/null
then _failed+=( "${_gem} --version ${_version}" )
fi
done < <( GEM_PATH="$GEM_HOME" __rvm_list_gems )

if (( ${#_failed[@]} > 0 ))
then
printf "%b" "\n"
rvm_error "'gem pristine ${_failed[*]}' failed, you need to fix this gems manually."
rvm_error "\n'gem pristine ${_failed[*]}' failed, you need to fix this gems manually."
return 1
else
rvm_log "finished."
rvm_log "\nfinished."
return 0
fi

Expand Down

0 comments on commit da106ae

Please sign in to comment.