diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..2edeafb09 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20 \ No newline at end of file diff --git a/src/scripts/tools/add_tools.sh b/src/scripts/tools/add_tools.sh index 5a92fbe06..a3960532a 100644 --- a/src/scripts/tools/add_tools.sh +++ b/src/scripts/tools/add_tools.sh @@ -1,5 +1,4 @@ # Variables -export tool_path_dir="/usr/local/bin" export composer_home="$HOME/.composer" export composer_bin="$composer_home/vendor/bin" export composer_json="$composer_home/composer.json" diff --git a/src/scripts/unix.sh b/src/scripts/unix.sh index d5356bf44..03aacf21d 100644 --- a/src/scripts/unix.sh +++ b/src/scripts/unix.sh @@ -55,6 +55,7 @@ read_env() { fail_fast="${fail_fast:-${FAIL_FAST:-false}}" [[ -z "${ImageOS}" && -z "${ImageVersion}" || -n ${ACT} ]] && _runner=self-hosted || _runner=github runner="${runner:-${RUNNER:-$_runner}}" + tool_path_dir="${tools_dir:-${TOOLS_DIR:-/usr/local/bin}}" if [[ "$runner" = "github" && $_runner = "self-hosted" ]]; then fail_fast=true @@ -75,6 +76,7 @@ read_env() { export runner export update export ts + export tools_dir_path } # Function to create a lock.