Commit 699f0cc5 by Jason Karns

remove sed fallback for help/usage

parent e932d471
......@@ -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"
}
......
......@@ -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"
}
......
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