瀏覽代碼
Merge pull request #1166 from tsahara/openbsd-does-not-have-seq
seq(1) is not available on OpenBSD.
pull/1173/head
Yamashita, Yuu
6 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
1 個檔案被更改,包括
1 行新增 和
1 行删除
-
libexec/pyenv-rehash
|
|
@ -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 |
|
|
|