You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "kou (via GitHub)" <gi...@apache.org> on 2024/02/01 00:40:29 UTC
Re: [PR] GH-39737: [Release][Docs] Update post release documentation task [arrow]
kou commented on PR #39762:
URL: https://github.com/apache/arrow/pull/39762#issuecomment-1920259571
Oh, could you try the following?
```diff
diff --git a/dev/release/post-08-docs.sh b/dev/release/post-08-docs.sh
index f18f7d10c7..a7529fdb2f 100755
--- a/dev/release/post-08-docs.sh
+++ b/dev/release/post-08-docs.sh
@@ -45,7 +45,16 @@ esac
pushd "${ARROW_SITE_DIR}"
source "${SOURCE_DIR}/git-vars.sh"
-git fetch --all --prune --tags --force -j$(nproc)
+n_cpus=1
+case $(uname) in
+ Linux)
+ n_cpus=$(nproc)
+ ;;
+ Darwin)
+ n_cpus=$(sysctl -n hw.logicalcpu)
+ ;;
+esac
+git fetch --all --prune --tags --force -j${n_cpus}
git checkout .
git checkout ${DEFAULT_BRANCH}
git clean -d -f -x
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org