Merge pull request #179 from johnwilliams/master

rbenv-init arguments should be allowed in any order
This commit is contained in:
Sam Stephenson 2012-01-17 07:41:55 -08:00
commit 9ea1f7d53e

View file

@ -3,16 +3,19 @@ set -e
[ -n "$RBENV_DEBUG" ] && set -x [ -n "$RBENV_DEBUG" ] && set -x
print="" print=""
if [ "$1" = "-" ]; then
print=1
shift
fi
no_rehash="" no_rehash=""
if [ "$1" = "--no-rehash" ]; then for args in "$@"
no_rehash=1 do
shift if [ "$args" = "-" ]; then
fi print=1
shift
fi
if [ "$args" = "--no-rehash" ]; then
no_rehash=1
shift
fi
done
shell="$1" shell="$1"
if [ -z "$shell" ]; then if [ -z "$shell" ]; then