add installer script
This commit is contained in:
parent
d8453b02f6
commit
8ce4a1752d
26
install.sh
Executable file
26
install.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/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
|
Loading…
x
Reference in New Issue
Block a user