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