Skip to content

Commit ed16796

Browse files
authored
Merge pull request #937 from Sn0wCrack/feature/override-tool-path-directory
Allow Setting Tool Path Directory
2 parents 8c20628 + e61a03f commit ed16796

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

src/scripts/tools/add_tools.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Variables
2-
export tool_path_dir="/usr/local/bin"
32
export composer_home="$HOME/.composer"
43
export composer_bin="$composer_home/vendor/bin"
54
export composer_json="$composer_home/composer.json"

src/scripts/unix.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ read_env() {
5555
fail_fast="${fail_fast:-${FAIL_FAST:-false}}"
5656
[[ -z "${ImageOS}" && -z "${ImageVersion}" || -n ${ACT} ]] && _runner=self-hosted || _runner=github
5757
runner="${runner:-${RUNNER:-$_runner}}"
58+
tool_path_dir="${tools_dir:-${TOOLS_DIR:-/usr/local/bin}}"
5859

5960
if [[ "$runner" = "github" && $_runner = "self-hosted" ]]; then
6061
fail_fast=true
@@ -75,6 +76,7 @@ read_env() {
7576
export runner
7677
export update
7778
export ts
79+
export tools_dir_path
7880
}
7981

8082
# Function to create a lock.

0 commit comments

Comments
 (0)