1
0
Fork 0

Merge pull request #4868 from bamarni/sudo-home-flag

[doc] add -H flag to sudo commands
pull/4898/head
Jordi Boggiano 2016-02-03 15:39:38 +00:00
commit 3969799565
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ mv composer.phar /usr/local/bin/composer
A quick copy-paste version including sudo:
```sh
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
curl -sS https://getcomposer.org/installer | sudo -H php -- --install-dir=/usr/local/bin --filename=composer
```
> **Note:** On some versions of OSX the `/usr` directory does not exist by

View File

@ -413,7 +413,7 @@ If you have installed Composer for your entire system (see [global installation]
you may have to run the command with `root` privileges
```sh
sudo composer self-update
sudo -H composer self-update
```
### Options