mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Make sure tool path is always in PATH
This commit is contained in:
parent
d731e56579
commit
77721f6637
@ -204,6 +204,8 @@ add_tool() {
|
||||
tool=$2
|
||||
ver_param=$3
|
||||
tool_path="$tool_path_dir/$tool"
|
||||
export PATH=$PATH:$tool_path_dir
|
||||
echo "$tool_path_dir" >> "$GITHUB_PATH"
|
||||
if [ ! -e "$tool_path" ]; then
|
||||
rm -rf "$tool_path"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user