#!/bin/bash : ' @vendor Chorke Academia, Inc. @web https://cdn.chorke.org/docs/academia @version 1.0.00 @since 1.0.00 ' :</dev/null <<'EOF' #!/bin/bash : ' @vendor Chorke Academia, Inc. @web https://cdn.chorke.org/docs/academia @version 1.0.00 @since 1.0.00 ' export RHINO_HOME='/opt/cli/rhino1.7.14' export RHINO_EXEC="java -jar ${RHINO_HOME}/lib/rhino-1.7.14.jar" if [[ "${@}/arg/is/empty" != '/arg/is/empty' ]];then export RHINO_EXEC="${RHINO_EXEC} ${@}" else export RHINO_EXEC="${RHINO_EXEC} -debug -version 200";fi if [ -f "${JAVA_HOME}/bin/java" ];then ${JAVA_HOME}/bin/${RHINO_EXEC} elif [ -x "$(command -v java)" ];then ${RHINO_EXEC} else printf '\njava \033[0;31mnot found! \033[0m:(\n';fi EOF sudo update-alternatives --install /usr/bin/rhino rhino /opt/cli/rhino1.7.14/bin/rhino 1983 } function init(){ validate download install } init