commit
d31011106c
|
@ -13,7 +13,7 @@ EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
|
||||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||||
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
|
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
|
||||||
|
|
||||||
if [ "$EXPECTED_SIGNATURE" == "$ACTUAL_SIGNATURE" ]
|
if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
|
||||||
then
|
then
|
||||||
php composer-setup.php --quiet
|
php composer-setup.php --quiet
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
@ -39,4 +39,4 @@ wget https://raw.githubusercontent.com/composer/getcomposer.org/1b137f8bf6db3e79
|
||||||
```
|
```
|
||||||
|
|
||||||
You may replace the commit hash by whatever the last commit hash is on
|
You may replace the commit hash by whatever the last commit hash is on
|
||||||
https://github.com/composer/getcomposer.org/commits/master
|
https://github.com/composer/getcomposer.org/commits/master
|
||||||
|
|
Loading…
Reference in New Issue