Skip to content

Commit 46303b3

Browse files
committed
change CONDA_PREFIX to HOME
1 parent 53f6a40 commit 46303b3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/rtd_pre_install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ dot -V
99

1010
# This folder is on PATH and does not require sudo
1111
# Download latest plantuml.jar from github
12-
curl -o ${CONDA_PREFIX}/bin/plantuml.jar -L https://github.com/plantuml/plantuml/releases/latest/download/plantuml.jar
12+
mkdir -p "${HOME}/.local/bin"
13+
curl -o "${HOME}/.local/bin/plantuml.jar" -L https://github.com/plantuml/plantuml/releases/latest/download/plantuml.jar
1314
# Create an executable script for plantuml
14-
printf '#!/bin/bash\nexec java -Djava.awt.headless=true -jar ${CONDA_PREFIX}/bin/plantuml.jar "$@"' > ${CONDA_PREFIX}/bin/plantuml
15-
chmod +x ${CONDA_PREFIX}/bin/plantuml
15+
printf '#!/bin/bash\nexec java -Djava.awt.headless=true -jar "${HOME}/.local/bin/plantuml.jar" "$@"\n' > "${HOME}/.local/bin/plantuml"
16+
chmod +x "${HOME}/.local/bin/plantuml"
1617

1718
# Check plantuml version
1819
plantuml -version

0 commit comments

Comments
 (0)