Unverified Commit 2b955e7e authored by Mislav Marohnić's avatar Mislav Marohnić
Browse files

List output: only print stderr notice if printing to a terminal

This makes it easier to redirect `rbenv install -l` output without having to silence stderr to get rid of the extra notice.
parent ecb9d228
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ for option in "${OPTIONS[@]}"; do
    ;;
  "l" | "list" )
    ruby-build --list
    {
    [ -t 1 ] && {
      echo
      echo "Only latest stable releases for each Ruby implementation are shown."
      echo "Use 'rbenv install --list-all / -L' to show all local versions."