From 25905379238fe48850e67ffc05f333e1d7cd96e2 Mon Sep 17 00:00:00 2001 From: Raniere Silva Date: Tue, 28 May 2024 15:51:15 +0800 Subject: [PATCH] Add files via upload --- postBuild | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 postBuild diff --git a/postBuild b/postBuild new file mode 100644 index 0000000..a49f2f5 --- /dev/null +++ b/postBuild @@ -0,0 +1,62 @@ +#!/bin/bash -v + +# determine which version of Quarto to install +QUARTO_VERSION=1.5.28 + +# See whether we need to lookup a Quarto version +if [ $QUARTO_VERSION = "prerelease" ]; then + QUARTO_JSON="_prerelease.json" +elif [ $QUARTO_VERSION = "release" ]; then + QUARTO_JSON="_download.json" +fi + +if [ $QUARTO_JSON != "" ]; then + +# create a python script and run it +PYTHON_SCRIPT=_quarto_version.py +if [ -e $PYTHON_SCRIPT ]; then + rm -rf $PYTHON_SCRIPT +fi + +cat > $PYTHON_SCRIPT <