Skip to content

Commit

Permalink
Use --fail flag for curl in Quarto binary fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpittwood committed Aug 29, 2024
1 parent 67488fa commit 37ea563
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion product/base/scripts/ubuntu/install_quarto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ while true; do
esac
done

set -u

if [ -z "$QUARTO_VERSION" ] && [[ "$IS_WORKBENCH_INSTALLATION" -eq 0 ]]; then
usage
exit 1
Expand All @@ -101,7 +103,7 @@ install_quarto() {
fi

mkdir -p "/opt/quarto/${QUARTO_VERSION}"
wget -q -O - "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.tar.gz" | tar xzf - -C "/opt/quarto/${QUARTO_VERSION}" --strip-components=1
curl -fsL "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.tar.gz" | tar xzf - -C "/opt/quarto/${QUARTO_VERSION}" --strip-components=1
}

update_tinytex() {
Expand Down

0 comments on commit 37ea563

Please sign in to comment.