1
0
Fork 0

[doc] add -H flag to sudo commands

pull/4868/head
Bilal Amarni 2016-02-03 15:46:15 +01:00
parent cff35071b6
commit 8b4761ff14
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: A quick copy-paste version including sudo:
```sh ```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 > **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 you may have to run the command with `root` privileges
```sh ```sh
sudo composer self-update sudo -H composer self-update
``` ```
### Options ### Options