The hash can change so checking for it is kind of dangerous
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
e49088315e
commit
60af938bf6
1 changed files with 0 additions and 1 deletions
|
@ -8,7 +8,6 @@ then
|
|||
else
|
||||
echo "Composer not found: fetching"
|
||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
||||
php composer-setup.php
|
||||
php -r "unlink('composer-setup.php');"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue