storebytecode.sh: Allow specifying a custom REPO_ROOT

This commit is contained in:
Kamil Śliwak 2022-02-16 19:16:23 +01:00
parent 59d4fdba75
commit 582271ed18

View File

@ -29,7 +29,8 @@
set -e
REPO_ROOT="$(dirname "$0")"/../..
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
REPO_ROOT="${REPO_ROOT:-${SCRIPT_DIR}/../..}"
cd "$REPO_ROOT"
REPO_ROOT=$(pwd) # make it absolute