A run that aborts before the cleanup fixture runs (timeout, OOM,
interrupt) leaves the clone dir behind, so the next build fails with
"destination path already exists". Remove it first.
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
JSONNET_VERSION="v0.6.0"
OUTPUT_DIR=${1:-$(pwd)}
+# clean up leftovers from an aborted run so the clone stays idempotent
+rm -rf jsonnet-bundler
git clone -b ${JSONNET_VERSION} --depth 1 https://github.com/jsonnet-bundler/jsonnet-bundler
make -C jsonnet-bundler build
mv jsonnet-bundler/_output/jb ${OUTPUT_DIR}