dotfiles/scripts/julia.sh

33 lines
673 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2021-07-27 18:59:49 +00:00
MINOR="1.6"
VERSION="1.6.2"
function install () {
echo "installing julia"
cd ~
wget https://julialang-s3.julialang.org/bin/linux/x64/$MINOR/julia-$VERSION-linux-x86_64.tar.gz
tar zxvf julia-$VERSION-linux-x86_64.tar.gz
sudo mv julia-$VERSION julia
2021-07-27 18:59:49 +00:00
sudo mv julia /opt/julia
sudo rm julia-$VERSION-linux-x86_64.tar.gz
2021-07-27 18:59:49 +00:00
}
function uninstall () {
echo "uninstalling julia"
sudo rm -rf ~/.julia
sudo rm -rf /opt/julia
}
# function help () {
# coming soon
# }
if [ "$1" == "install" ]; then
install
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall
else
echo "please specify args with install or uninstall"
fi