From 0d19834e57eb49a890fb7113bb4527a75ee8c936 Mon Sep 17 00:00:00 2001 From: Ludovico Bianchi Date: Tue, 20 Feb 2024 10:39:24 -0600 Subject: [PATCH] Move Quarto installation to own script --- install-quarto.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 install-quarto.sh diff --git a/install-quarto.sh b/install-quarto.sh new file mode 100644 index 0000000..1f0fadc --- /dev/null +++ b/install-quarto.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -e +set -o pipefail + +QUARTO_RELEASE="${1:-1.4.550}" + +INSTALL_DIR="$HOME/opt/quarto" +BIN_DIR="$HOME/.local/bin" +filename="quarto-${QUARTO_RELEASE}-linux-amd64.tar.gz" + +mkdir -p "$INSTALL_DIR" "$BIN_DIR" +wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_RELEASE}/${filename}" +tar -C "$INSTALL_DIR" -xvzf "$filename" +rm "$filename" +ln -s "${INSTALL_DIR}/quarto-${QUARTO_RELEASE}/bin/quarto" "${BIN_DIR}/quarto" +which -a quarto +quarto check