utils/index: remove /usr/local/elixir/update.py absolute path
Instead, start from $0 and move back up two times. So, something like:
./elixir/utils/index
./elixir/utils
./elixir
./elixir/update.py
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
parent
7f9562a13f
commit
ebb06050aa
1 changed files with 3 additions and 1 deletions
|
|
@ -63,8 +63,10 @@ project_index() {
|
||||||
ELIXIR_THREADS="$(nproc)"
|
ELIXIR_THREADS="$(nproc)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
elixir_sources="$(dirname "$(dirname "$0")")"
|
||||||
|
|
||||||
LXR_REPO_DIR=$1/repo LXR_DATA_DIR=$1/data \
|
LXR_REPO_DIR=$1/repo LXR_DATA_DIR=$1/data \
|
||||||
python3 /usr/local/elixir/update.py $ELIXIR_THREADS
|
python3 "$elixir_sources/update.py" $ELIXIR_THREADS
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1 is the Elixir root data path.
|
# $1 is the Elixir root data path.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue