summaryrefslogtreecommitdiff
path: root/hack/install_bats.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hack/install_bats.sh')
-rwxr-xr-xhack/install_bats.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/hack/install_bats.sh b/hack/install_bats.sh
new file mode 100755
index 000000000..00ded07a9
--- /dev/null
+++ b/hack/install_bats.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -e
+
+die() { echo "${1:-No error message given} (from $(basename $0))"; exit 1; }
+
+buildDir=$(mktemp -d)
+git clone https://github.com/bats-core/bats-core $buildDir
+
+pushd $buildDir
+pwd
+git reset --hard ${VERSION}
+./install.sh /usr/local
+popd
+
+rm -rf $buildDir