mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge pull request #179 from johnwilliams/master
rbenv-init arguments should be allowed in any order
This commit is contained in:
commit
9ea1f7d53e
1 changed files with 12 additions and 9 deletions
|
@ -3,16 +3,19 @@ set -e
|
||||||
[ -n "$RBENV_DEBUG" ] && set -x
|
[ -n "$RBENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
print=""
|
print=""
|
||||||
if [ "$1" = "-" ]; then
|
no_rehash=""
|
||||||
|
for args in "$@"
|
||||||
|
do
|
||||||
|
if [ "$args" = "-" ]; then
|
||||||
print=1
|
print=1
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
no_rehash=""
|
if [ "$args" = "--no-rehash" ]; then
|
||||||
if [ "$1" = "--no-rehash" ]; then
|
|
||||||
no_rehash=1
|
no_rehash=1
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
shell="$1"
|
shell="$1"
|
||||||
if [ -z "$shell" ]; then
|
if [ -z "$shell" ]; then
|
||||||
|
|
Loading…
Reference in a new issue