aboutsummaryrefslogtreecommitdiff
path: root/common/make-run.sh
blob: 8c719b2009643242442b3c91eb7d3452929d7772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -euo pipefail

WORKDIR="/tmp/${NAME}"

cleanup() {
	cd /
	rm -rf "${WORKDIR}"
}

trap cleanup EXIT

git clone -q "${URL}" "${WORKDIR}"
cd "${WORKDIR}"
make run