#!/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 CLOSURE_COMPILER_HOME='/opt/cli/closure-compiler-20200719' export CLOSURE_COMPILER_EXEC="java -jar ${CLOSURE_COMPILER_HOME}/closure-compiler-v20200719.jar" if [[ "${@}/arg/is/empty" != '/arg/is/empty' ]];then export CLOSURE_COMPILER_EXEC="${CLOSURE_COMPILER_EXEC} ${@}";fi if [ -f "${JAVA_HOME}/bin/java" ];then ${JAVA_HOME}/bin/${CLOSURE_COMPILER_EXEC} elif [ -x "$(command -v java)" ];then ${CLOSURE_COMPILER_EXEC} else printf '\njava \033[0;31mnot found! \033[0m:(\n';fi EOF sudo update-alternatives --install /usr/bin/closure-compiler closure-compiler /opt/cli/closure-compiler-20200719/bin/closure-compiler 1983 } function init(){ validate download install } init