Skip to content

Commit

Permalink
use POSIX-compliant syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jan 30, 2025
1 parent f47cb42 commit 7767e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/install-bin-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if [ -z $TINYTEX_VERSION ]; then
TINYTEX_URL="https://github.com/rstudio/tinytex-releases/releases/download/daily/$TINYTEX_INSTALLER"
else
# the installer was accidentally named "install-unix" instead of "installer-unix" before v2025.01
if [ "$TINYTEX_INSTALLER" = "installer-unix" ] && [[ "$TINYTEX_VERSION" -le "2025.01" ]]; then
if [ "$TINYTEX_INSTALLER" = "installer-unix" ] && [ "$TINYTEX_VERSION" \< "2025.02" ]; then
TINYTEX_INSTALLER="install-unix"
fi
TINYTEX_URL="https://github.com/rstudio/tinytex-releases/releases/download/v$TINYTEX_VERSION/$TINYTEX_INSTALLER-v$TINYTEX_VERSION"
Expand All @@ -49,7 +49,7 @@ if [ $OSNAME = 'Darwin' ]; then
curl -L -f --retry 10 --retry-delay 30 ${TINYTEX_URL}.tgz -o TinyTeX.tgz
tar xf TinyTeX.tgz -C $(dirname $TEXDIR)
rm TinyTeX.tgz
else if [[ "$TINYTEX_INSTALLER" =~ ^"TinyTeX-" ]]; then
else if [ "${TINYTEX_INSTALLER#"TinyTeX"}" != "$TINYTEX_INSTALLER" ]; then
wget --retry-connrefused --progress=dot:giga -O TinyTeX.tar.gz ${TINYTEX_URL}.tar.gz
tar xf TinyTeX.tar.gz -C $(dirname $TEXDIR)
rm TinyTeX.tar.gz
Expand Down

0 comments on commit 7767e4c

Please sign in to comment.