1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 21:33:54 -05:00

Merge pull request #1166 from tsahara/openbsd-does-not-have-seq

seq(1) is not available on OpenBSD.
This commit is contained in:
Yamashita, Yuu
2018-06-06 09:42:26 +09:00
committed by GitHub

View File

@@ -40,7 +40,7 @@ if [ ! -w "$SHIM_PATH" ]; then
fi
unset acquired
for _ in $(seq "${PYENV_REHASH_TIMEOUT:-60}"); do
for (( i=1; i<="${PYENV_REHASH_TIMEOUT:-60}"; i++ )); do
if acquire_lock 2>/dev/null; then
acquired=1
break