From 29e6c829e3259bcf856b00ecb2137a3ad4676271 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 5 Sep 2022 00:04:35 +0200 Subject: Factorised ev-scripts-deploy in a generic git clone && make run --- common/make-run.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 common/make-run.sh (limited to 'common') diff --git a/common/make-run.sh b/common/make-run.sh new file mode 100644 index 0000000..8c719b2 --- /dev/null +++ b/common/make-run.sh @@ -0,0 +1,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 -- cgit v1.2.3