Ver a proveniência

Merge pull request #179 from johnwilliams/master

rbenv-init arguments should be allowed in any order
pull/360/head^2
Sam Stephenson há 14 anos
ascendente
cometimento
9ea1f7d53e
1 ficheiros alterados com 12 adições e 9 eliminações
  1. +12
    -9
      libexec/rbenv-init

+ 12
- 9
libexec/rbenv-init Ver ficheiro

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

Carregando…
Cancelar
Guardar