utils/index-repository: if $ELIXIR_THREADS is not passed, use nproc

Follow behavior of utils/index-all-repositories.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
Théo Lebrun 2024-10-01 16:27:32 +02:00
parent 905e6ef657
commit 06d503e3d9

View file

@ -5,6 +5,9 @@ if [ "$#" -ne 2 ]; then
exit 1
fi
export ELIXIR_INSTALL=$(dirname $(dirname $(readlink -f "$0")))
. $ELIXIR_INSTALL/utils/common.sh
dir=/srv/elixir-data/$1
mkdir -p $dir/data