Fix composer_bin not found error

This commit is contained in:
Shivam Mathur 2022-01-25 12:14:30 +05:30
parent 57db6baebb
commit 147905fd60
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

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