diff --git a/content/base/bionic/maybe_install_quarto.sh b/content/base/bionic/maybe_install_quarto.sh index 103781af..1e444063 100755 --- a/content/base/bionic/maybe_install_quarto.sh +++ b/content/base/bionic/maybe_install_quarto.sh @@ -1,8 +1,8 @@ #!/bin/bash -# only install quarto if python 3.10 and R 4.1 +# only install quarto if python 3.10 and R 4.1 OR python 3.9 and R 4.1 # TODO: figure out a different hierarchy... -if [[ `ls /opt/python/ | grep '3\.10\.'` ]] && [[ `ls /opt/R | grep '4\.1\.'` ]]; then +if ([[ `ls /opt/python/ | grep '3\.10\.'` ]] && [[ `ls /opt/R | grep '4\.1\.'` ]]) || ([[ `ls /opt/python/ | grep '3\.9\.'` ]] && [[ `ls /opt/R | grep '4\.1\.'` ]]) ; then qver=${QUARTO_VERSION:-1.0.37} echo '--> Installing Quarto' curl -L -o /quarto.deb https://github.com/quarto-dev/quarto-cli/releases/download/v${qver}/quarto-${qver}-linux-amd64.deb