mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 23:03:53 -05:00
rehash: preserve existing $PYENV_REHASH_TIMEOUT semantics
Try for that long no matter what the sleep step available is.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user