Skip to content

Commit

Permalink
Move Quarto installation to own script
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Feb 20, 2024
1 parent 82aefc7 commit 0d19834
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions install-quarto.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0d19834

Please sign in to comment.