#!/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