Commit 699f0cc5 authored by Jason Karns's avatar Jason Karns
Browse files

remove sed fallback for help/usage

parent e932d471
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -46,8 +46,7 @@ fi
eval "$(ruby-build --lib)"

usage() {
  # We can remove the sed fallback once rbenv 0.4.0 is widely available.
  rbenv-help install 2>/dev/null || sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$0"
  rbenv-help install 2>/dev/null
  [ -z "$1" ] || exit "$1"
}

+1 −2
Original line number Diff line number Diff line
@@ -18,8 +18,7 @@ if [ "$1" = "--complete" ]; then
fi

usage() {
  # We can remove the sed fallback once rbenv 0.4.0 is widely available.
  rbenv-help uninstall 2>/dev/null || sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$0"
  rbenv-help uninstall 2>/dev/null
  [ -z "$1" ] || exit "$1"
}