Skip to content

Commit c1a4e5d

Browse files
committed
Add curl -sS everywhere
1 parent ce7a75f commit c1a4e5d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Since Composer works with the current working directory it is possible to instal
5151
in a system wide way.
5252

5353
1. Change into a directory in your path like `cd /usr/local/bin`
54-
2. Get Composer `curl -s https://getcomposer.org/installer | php`
54+
2. Get Composer `curl -sS https://getcomposer.org/installer | php`
5555
3. Make the phar executable `chmod a+x composer.phar`
5656
4. Change into a project directory `cd /path/to/my/project`
5757
5. Use Composer as you normally would `composer.phar install`

doc/00-intro.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Linux and OSX.
6363
To actually get Composer, we need to do two things. The first one is installing
6464
Composer (again, this means downloading it into your project):
6565

66-
$ curl -s https://getcomposer.org/installer | php
66+
$ curl -sS https://getcomposer.org/installer | php
6767

6868
This will just check a few PHP settings and then download `composer.phar` to
6969
your working directory. This file is the Composer binary. It is a PHAR (PHP
@@ -73,7 +73,7 @@ line, amongst other things.
7373
You can install Composer to a specific directory by using the `--install-dir`
7474
option and providing a target directory (it can be an absolute or relative path):
7575

76-
$ curl -s https://getcomposer.org/installer | php -- --install-dir=bin
76+
$ curl -sS https://getcomposer.org/installer | php -- --install-dir=bin
7777

7878
#### Globally
7979

@@ -83,7 +83,7 @@ executable and invoke it without `php`.
8383

8484
You can run these commands to easily access `composer` from anywhere on your system:
8585

86-
$ curl -s https://getcomposer.org/installer | php
86+
$ curl -sS https://getcomposer.org/installer | php
8787
$ sudo mv composer.phar /usr/local/bin/composer
8888

8989
Then, just run `composer` in order to run Composer instead of `php composer.phar`.

doc/01-basic-usage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
To install Composer, you just need to download the `composer.phar` executable.
66

7-
$ curl -s https://getcomposer.org/installer | php
7+
$ curl -sS https://getcomposer.org/installer | php
88

99
For the details, see the [Introduction](00-intro.md) chapter.
1010

@@ -17,7 +17,7 @@ This should give you a list of available commands.
1717
> **Note:** You can also perform the checks only without downloading Composer
1818
> by using the `--check` option. For more information, just use `--help`.
1919
>
20-
> $ curl -s https://getcomposer.org/installer | php -- --help
20+
> $ curl -sS https://getcomposer.org/installer | php -- --help
2121
2222
## `composer.json`: Project Setup
2323

doc/articles/troubleshooting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is a list of common pitfalls on using Composer, and how to avoid them.
1111
latest version**. See [self-update](../03-cli.md#self-update) for details.
1212

1313
2. Make sure you have no problems with your setup by running the installer's
14-
checks via `curl -s https://getcomposer.org/installer | php -- --check`.
14+
checks via `curl -sS https://getcomposer.org/installer | php -- --check`.
1515

1616
3. Ensure you're **installing vendors straight from your `composer.json`** via
1717
`rm -rf vendor && composer update -v` when troubleshooting, excluding any

src/bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function includeIfExists($file)
1919

2020
if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
2121
echo 'You must set up the project dependencies, run the following commands:'.PHP_EOL.
22-
'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
22+
'curl -sS https://getcomposer.org/installer | php'.PHP_EOL.
2323
'php composer.phar install'.PHP_EOL;
2424
exit(1);
2525
}

0 commit comments

Comments
 (0)