Skip to content

Commit

Permalink
Create tool_path_dir if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 22, 2023
1 parent 7fdd3ec commit 9102646
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/tools/add_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ add_tool() {
tool=$2
ver_param=$3
tool_path="$tool_path_dir/$tool"
if ! [ -d "$tool_path_dir" ]; then
sudo mkdir -p "$tool_path_dir"
fi
add_path "$tool_path_dir"
if [ -e "$tool_path" ]; then
sudo cp -aL "$tool_path" /tmp/"$tool"
Expand Down

0 comments on commit 9102646

Please sign in to comment.