File indexing completed on 2025-01-17 09:57:16
0001
0002 set -Euo pipefail
0003 trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
0004 IFS=$'\n\t'
0005
0006 if [ -z "${SANDBOX_PATH}" ]; then
0007 if [ ! -z "${EIC_SHELL_RELEASE}" ] && [ ! -z "${EIC_SHELL_PLATFORM_RELEASE}" ]; then
0008 echo "You set the variable release and platform-release together, this is not possible."
0009 echo "You either the variable pair release and platform or just plaform-release."
0010 exit 1
0011 fi
0012
0013
0014 if [ ! -z "${EIC_SHELL_PLATFORM}" ] && [ ! -z "${EIC_SHELL_PLATFORM_RELEASE}" ]; then
0015 echo "You set the variable platform and platform-release together, this is not possible."
0016 echo "You either the variable pair release and platform or just platform-release."
0017 exit 1
0018 fi
0019
0020 if [ ! -z "${EIC_SHELL_PLATFORM}" ]; then
0021 export EIC_SHELL_PLATFORM_RELEASE="${EIC_SHELL_PLATFORM}:${EIC_SHELL_RELEASE}"
0022 fi
0023 export EIC_SHELL_PLATFORM=$(echo "${EIC_SHELL_PLATFORM_RELEASE}" | cut -d ':' -f 1)
0024 export EIC_SHELL_RELEASE=$(echo "${EIC_SHELL_PLATFORM_RELEASE}" | cut -d ':' -f 2)
0025 fi
0026
0027 if [ "$(uname)" == "Linux" ]; then
0028 $THIS/run-linux.sh
0029 fi
0030
0031 if [ "$(uname)" == "Darwin" ]; then
0032 echo "You are trying to use this action on a macOS system, this is not possible."
0033 exit 1
0034 fi