Skip to content

Commit 5792f5c

Browse files
committed
Install Julia if needed.
1 parent e8c52c6 commit 5792f5c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

bin/install

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ if [[ $(basename $(pwd)) == "bin" ]]; then
44
cd ..
55
fi
66

7+
# TODO check if juliaup is installed
8+
9+
# TODO check if Julia is installed and install it if not
10+
11+
if ! command -v juliaup &> /dev/null; then
12+
echo "Please install the Julia installer 'juliaup'!"
13+
echo "See: https://github.com/JuliaLang/juliaup"
14+
exit 1
15+
fi
16+
17+
# if Julia is not installed, install Julia 1.11
18+
if ! command -v julia &> /dev/null; then
19+
echo "The command 'julia' was not found."
20+
echo "Installing Julia 1.11!"
21+
juliaup add 1.11
22+
juliaup default 1.11
23+
fi
24+
725
export JULIA_PKG_SERVER_REGISTRY_PREFERENCE=eager
826

927
julia -e 'using Pkg; Pkg.add("TestEnv"); Pkg.add("ControlPlots")'

0 commit comments

Comments
 (0)