From efcc70a26f6a4c0bd2006044e63b21f692bee5d1 Mon Sep 17 00:00:00 2001 From: Paul Sauve Date: Thu, 15 Jun 2017 22:17:27 -0500 Subject: [PATCH] Forgot what this is --- scripts/benchmark.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index 5fe8eb5adf..c664d97464 100755 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -1,9 +1,17 @@ #!/usr/bin/env bash set -e -git clone https://github.com/PaulBGD/svelte-bench.git ./tmp/svelte-bench -cd ./tmp/svelte-bench +DIR=./tmp/svelte-bench +REPO=https://github.com/PaulBGD/svelte-bench.git + +if [ ! -d $DIR ]; then + git clone $REPO $DIR +fi + +cd $DIR +git pull origin selenium git checkout selenium + yarn yarn run build:benchmarks node ./selenium/run.js "$@"