Commit 699f0cc5 by Jason Karns

remove sed fallback for help/usage

parent e932d471
...@@ -46,8 +46,7 @@ fi ...@@ -46,8 +46,7 @@ fi
eval "$(ruby-build --lib)" eval "$(ruby-build --lib)"
usage() { usage() {
# We can remove the sed fallback once rbenv 0.4.0 is widely available. rbenv-help install 2>/dev/null
rbenv-help install 2>/dev/null || sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$0"
[ -z "$1" ] || exit "$1" [ -z "$1" ] || exit "$1"
} }
......
...@@ -18,8 +18,7 @@ if [ "$1" = "--complete" ]; then ...@@ -18,8 +18,7 @@ if [ "$1" = "--complete" ]; then
fi fi
usage() { usage() {
# We can remove the sed fallback once rbenv 0.4.0 is widely available. rbenv-help uninstall 2>/dev/null
rbenv-help uninstall 2>/dev/null || sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$0"
[ -z "$1" ] || exit "$1" [ -z "$1" ] || exit "$1"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment