Permalink
Browse files

Silence grep when not found.

  • Loading branch information...
wayneeseguin committed Apr 16, 2010
1 parent 1633c31 commit da0e865716b884f8c21c3e871305b739bdbd62c4
Showing with 3 additions and 1 deletion.
  1. +3 −1 scripts/manage
View
@@ -806,10 +806,12 @@ __rvm_remove_ruby() {
else
$rvm_scripts_path/log "info" "it seems that $dir/$rvm_ruby_string is already non existent."
fi
+
if [[ -e $rvm_bin_path/$rvm_ruby_string ]] ; then
rm -f $rvm_bin_path/$rvm_ruby_string
fi
- if grep -q "$rvm_ruby_string" "$rvm_config_path/default" ; then
+
+ if grep -q "$rvm_ruby_string" "$rvm_config_path/default" 2>/dev/null ; then
rm -f "$rvm_config_path/default"
fi
done ; unset dir

0 comments on commit da0e865

Please sign in to comment.