Skip to content

Commit

Permalink
Simplify "is_rbenv_git_repo" check
Browse files Browse the repository at this point in the history
No need for capturing the output. Instead, silence the output.
  • Loading branch information
mislav committed Oct 10, 2015
1 parent fd6d48f commit 32d0c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/rbenv-update
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ indent_output() {
}

is_rbenv_git_repo() {
$(git remote -v | grep -E 'rbenv|ruby-build' &>/dev/null)
git remote -v 2>/dev/null | grep -q 'rbenv\|ruby-build'
}

rbenv_update() {
Expand Down

0 comments on commit 32d0c29

Please sign in to comment.