From 0c93bc3d0b3b1006b9d3012bbd2e22d883235e3c Mon Sep 17 00:00:00 2001 From: Patrik Lermon Date: Thu, 25 Feb 2016 11:18:41 +0100 Subject: [PATCH] Update troubleshooting.md --- doc/articles/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/articles/troubleshooting.md b/doc/articles/troubleshooting.md index 96861d84a..4b63938cb 100644 --- a/doc/articles/troubleshooting.md +++ b/doc/articles/troubleshooting.md @@ -198,7 +198,7 @@ your setup. This also assumes that you have sudo privileges and the `php5enmod` commands available. It also assumes that you have `composer` in your path. ```sh -echo 'function composer() { COMPOSER="$(which composer)" && sudo php5dismod -s cli xdebug ; $COMPOSER "$@" ; STATUS=$? ; sudo php5enmod -s cli xdebug ; return $STATUS ; }' >> ~/.bash_aliases +echo 'function composer() { COMPOSER="$(which composer)" || { echo "Could not find composer in path" ; return 1 ; } && sudo php5dismod -s cli xdebug ; $COMPOSER "$@" ; STATUS=$? ; sudo php5enmod -s cli xdebug ; return $STATUS ; }' >> ~/.bash_aliases . ~/.bash_aliases ```