From 582271ed180e04e348083c9c92670aa12becf397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Wed, 16 Feb 2022 19:16:23 +0100 Subject: [PATCH] storebytecode.sh: Allow specifying a custom REPO_ROOT --- scripts/bytecodecompare/storebytecode.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/bytecodecompare/storebytecode.sh b/scripts/bytecodecompare/storebytecode.sh index 2192960e4..e41c90c84 100755 --- a/scripts/bytecodecompare/storebytecode.sh +++ b/scripts/bytecodecompare/storebytecode.sh @@ -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