Make sure tool path is always in PATH

This commit is contained in:
Shivam Mathur 2020-12-26 01:00:24 +05:30
parent d731e56579
commit 77721f6637
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -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