File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,18 @@ jobs:
4141
4242 - name : Install Composer
4343 run : |
44- EXPECTED_CHECKSUM="$(php -r 'copy(\"https://composer.github.io/installer.sig\", \"php://stdout\");')"
45- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
46- ACTUAL_CHECKSUM="$(php -r \"echo hash_file('sha384', 'composer-setup.php');\")"
44+ EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
45+ php -r 'copy("https://getcomposer.org/installer", "composer-setup.php");'
46+ ACTUAL_CHECKSUM="$(php -r 'echo hash_file("sha384", "composer-setup.php");')"
47+
4748 if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]; then
48- >&2 echo 'ERROR: Invalid composer installer checksum'
49- exit 1
49+ >&2 echo 'ERROR: Invalid composer installer checksum'
50+ rm composer-setup.php
51+ exit 1
5052 fi
53+
5154 php composer-setup.php --install-dir=/usr/local/bin --filename=composer
5255 rm composer-setup.php
53-
5456 - name : Wait for MySQL
5557 run : |
5658 for i in {1..10}; do
You can’t perform that action at this time.
0 commit comments