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