]> git.scottworley.com Git - inverse-tax/blame - test.sh
git pre-commit hook
[inverse-tax] / test.sh
CommitLineData
0993d859
SW
1#!/bin/bash
2
3set -e
4
5test_js=
6cleanup() {
7 if [[ "$test_js" && -e "$test_js" ]];then
8 rm -rf "$test_js"
9 fi
10}
11trap cleanup EXIT
12test_js=$(mktemp)
13
14cat *.js > "$test_js"
15
16node "$test_js"