Fix log for composer on darwin

This commit is contained in:
Shivam Mathur 2020-01-16 09:06:55 +05:30
parent 9f21c80d24
commit ca2f547a35
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -54,6 +54,7 @@ add_tool() {
if [ "$tool" = "composer" ]; then if [ "$tool" = "composer" ]; then
brew install composer >/dev/null 2>&1 brew install composer >/dev/null 2>&1
composer -q global config process-timeout 0 composer -q global config process-timeout 0
add_log "$tick" "$tool" "Added"
else else
if [ ! -e /usr/local/bin/"$tool" ]; then if [ ! -e /usr/local/bin/"$tool" ]; then
rm -rf /usr/local/bin/"${tool:?}" rm -rf /usr/local/bin/"${tool:?}"