rehash: preserve existing $PYENV_REHASH_TIMEOUT semantics
Try for that long no matter what the sleep step available is.
This commit is contained in:
parent
c0ea15226d
commit
b938abdea1
@ -40,7 +40,8 @@ if [ ! -w "$SHIM_PATH" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
unset acquired
|
unset acquired
|
||||||
for (( i=1; i<="${PYENV_REHASH_TIMEOUT:-60}"; i++ )); do
|
start=$SECONDS
|
||||||
|
while (( SECONDS <= start + ${PYENV_REHASH_TIMEOUT:-60} )); do
|
||||||
if acquire_lock 2>/dev/null; then
|
if acquire_lock 2>/dev/null; then
|
||||||
acquired=1
|
acquired=1
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user