#!/bin/bash : ' @vendor Chorke Academia, Inc. @web https://cdn.chorke.org/docs/academia @version 1.0.00 @since 1.0.00 ' :<> "${MEMBER_ENV_PROFILE}" else printf 'already configured "\033[0;32mSPARK_HOME\033[0m" :)\n\n' fi # suppress warning for relogin or exec script if [[ -f "${MEMBER_ENV_PROFILE}" ]]&&[[ -s "${MEMBER_ENV_PROFILE}" ]]&& [[ "${SPARK_HOME}/env/set" == '/env/set' ]];then printf 'please relogin or exec "\033[0;32msource %s\033[0m"\n\n' "${MEMBER_ENV_PROFILE}" source "${MEMBER_ENV_PROFILE}" fi } function void_init(){ if [[ "${SPARK_HOME_DIR}/env/set" == '/env/set' ]];then export SPARK_HOME_DIR='/var/spark/spark-3.3.4' fi } function post_init(){ bash <(curl -s 'https://cdn.chorke.org/exec/cli/bash/install/profile/chorke/robotics.sh.txt') } function init(){ post_init void_init conf_init } init