Преглед на файлове

Merge pull request #179 from johnwilliams/master

rbenv-init arguments should be allowed in any order
pull/360/head^2
Sam Stephenson преди 14 години
родител
ревизия
9ea1f7d53e
променени са 1 файла, в които са добавени 12 реда и са изтрити 9 реда
  1. +12
    -9
      libexec/rbenv-init

+ 12
- 9
libexec/rbenv-init Целия файл

@ -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

Зареждане…
Отказ
Запис