From 147905fd600428d4f9ed73db5dd0d8525a80e177 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 25 Jan 2022 12:14:30 +0530 Subject: [PATCH] Fix composer_bin not found error --- src/scripts/tools/add_tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/tools/add_tools.sh b/src/scripts/tools/add_tools.sh index 322b8ff0..02183fa7 100644 --- a/src/scripts/tools/add_tools.sh +++ b/src/scripts/tools/add_tools.sh @@ -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