mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Fix composer_bin not found error
This commit is contained in:
parent
57db6baebb
commit
147905fd60
@ -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"/phpdocumentor 2>/dev/null || true
|
||||||
sudo ln -s "$tool_path" "$tool_path_dir"/phpdoc
|
sudo ln -s "$tool_path" "$tool_path_dir"/phpdoc
|
||||||
elif [[ "$tool" =~ phpunit(-polyfills)?$ ]]; then
|
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"
|
sudo cp "$tool_path_dir"/phpunit "$composer_bin"
|
||||||
fi
|
fi
|
||||||
elif [[ "$tool" =~ vapor-cli ]]; then
|
elif [[ "$tool" =~ vapor-cli ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user