blob: 71f503c181680a9d04c8a396d0e58d6e8df102f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env bash
set -euo pipefail
URL=$1
WORKDIR="/tmp/${EVENTLINE_JOB_NAME}"
cleanup() {
rm -rf "${WORKDIR}"
}
trap cleanup EXIT
git clone -q "${URL}" "${WORKDIR}"
trap - EXIT
|