jprog/install.sh

26 lines
566 B
Bash
Raw Normal View History

2018-06-12 17:53:30 -07:00
#!/bin/bash
which ()
{
(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
export -f which
which julia &> /dev/null
if [ $? != 0 ];then
echo -e -n "\nJulia is not installed, proceed?(Y/n): "
read confirm
if [ "${confirm}" = "n" ];then
exit 0;
fi
fi
sudo cp -v src/jprog.jl /usr/local/bin/jprog
if [ ! -f /usr/local/bin/jprog ];then
echo -e "/nUnable to install, please check permissions...\n"
else
echo -e "Jprog is successfully installed!\n"
fi