EVO: script update-all > change text & rm composer-setup.php position in script

pull/6/head
Thomas Metois 2017-03-10 14:40:13 +01:00
parent 96cccf23c7
commit c6c31c5ead
1 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ if [[ -z "$composercommand" ]]; then
$phpcommand -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" $phpcommand -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE=$($phpcommand -r "echo hash_file('SHA384', 'composer-setup.php');") ACTUAL_SIGNATURE=$($phpcommand -r "echo hash_file('SHA384', 'composer-setup.php');")
if [[ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]]; then if [[ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]]; then
echo "Error download composer (different hash" echo "Error download composer (different hash)"
rm composer-setup.php rm composer-setup.php
exit 1 exit 1
fi fi
$phpcommand composer-setup.php --quiet
rm composer-setup.php rm composer-setup.php
$phpcommand composer-setup.php --quiet
fi fi
$phpcommand composer.phar update -o $phpcommand composer.phar update -o
else else