From 7f975a37f9ae9f148509e4e6aef7714d7f2a9f64 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Fri, 4 Jan 2013 10:12:29 -0600 Subject: [PATCH] Deprecate ruby-local-exec --- bin/ruby-local-exec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/ruby-local-exec b/bin/ruby-local-exec index a2064370..97d0a3df 100755 --- a/bin/ruby-local-exec +++ b/bin/ruby-local-exec @@ -13,4 +13,11 @@ set -e export RBENV_DIR="${1%/*}" + +[ -n "$RBENV_SILENCE_WARNINGS" ] || { + echo "rbenv: \`ruby-local-exec' is deprecated and will be removed in the next release." + echo " To upgrade: https://github.com/sstephenson/rbenv/wiki/ruby-local-exec" + echo +} >&2 + exec ruby "$@"