Skip to content

Commit

Permalink
Fix composer_bin not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jan 25, 2022
1 parent 57db6ba commit 147905f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/tools/add_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ add_tools_helper() {
sudo ln -s "$tool_path" "$tool_path_dir"/phpdocumentor 2>/dev/null || true
sudo ln -s "$tool_path" "$tool_path_dir"/phpdoc
elif [[ "$tool" =~ phpunit(-polyfills)?$ ]]; then
if [ -e "$tool_path_dir"/phpunit ]; then
if [ -e "$tool_path_dir"/phpunit ] && [ -d "$composer_bin" ]; then
sudo cp "$tool_path_dir"/phpunit "$composer_bin"
fi
elif [[ "$tool" =~ vapor-cli ]]; then
Expand Down

0 comments on commit 147905f

Please sign in to comment.