mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-04-19 00:45:22 +00:00
fix: reuse local geekbench, do not download it (#68)
This commit is contained in:
parent
007650e6df
commit
2c91051dbf
9
yabs.sh
9
yabs.sh
@ -894,8 +894,13 @@ function launch_geekbench {
|
|||||||
if [[ $GB_RUN == *True* ]]; then # run GB test
|
if [[ $GB_RUN == *True* ]]; then # run GB test
|
||||||
echo -en "\nRunning GB$VERSION benchmark test... *cue elevator music*"
|
echo -en "\nRunning GB$VERSION benchmark test... *cue elevator music*"
|
||||||
|
|
||||||
# download the desired Geekbench tarball and extract to geekbench temp directory
|
# check for local geekbench installed
|
||||||
$DL_CMD $GB_URL | tar xz --strip-components=1 -C $GEEKBENCH_PATH &>/dev/null
|
if command -v "$GB_CMD" &>/dev/null; then
|
||||||
|
GEEKBENCH_PATH=$(dirname "$(command -v "$GB_CMD")")
|
||||||
|
else
|
||||||
|
# download the desired Geekbench tarball and extract to geekbench temp directory
|
||||||
|
$DL_CMD $GB_URL | tar xz --strip-components=1 -C $GEEKBENCH_PATH &>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
# unlock if license file detected
|
# unlock if license file detected
|
||||||
test -f "geekbench.license" && $GEEKBENCH_PATH/$GB_CMD --unlock $(cat geekbench.license) > /dev/null 2>&1
|
test -f "geekbench.license" && $GEEKBENCH_PATH/$GB_CMD --unlock $(cat geekbench.license) > /dev/null 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user