Skip to content

Commit 362ad07

Browse files
committed
Fix path of repository in the script
1 parent 1300eb1 commit 362ad07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/branch-compare.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4-
cd $SCRIPT_DIR/..
4+
BASE_DIR=$(dirname $SCRIPT_DIR)
55
branch=$(git rev-parse --abbrev-ref HEAD)
66
echo "Comparing main branch with $branch"
77

@@ -20,7 +20,7 @@ rm -rf .bench-compare
2020
mkdir .bench-compare
2121
cd .bench-compare
2222
echo "Fetching and build $branch .."
23-
git clone ${SCRIPT_DIR} -b $branch .
23+
git clone ${BASE_DIR} -b $branch .
2424
git fetch origin
2525
meson setup --warnlevel 0 --buildtype plain builddir-${branch}
2626
cd builddir-${branch}

0 commit comments

Comments
 (0)