Skip to content

Commit

Permalink
yet another php manual update (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
vixentael authored Aug 7, 2019
1 parent d28bc6f commit c475dc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpthemis/composer-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "echo 'Installed hash = '; echo hash_file('SHA384', 'composer-setup.php');"

php -r "if (hash_file('SHA384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5')
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1')
{ echo 'Valid signature, continue installation'; }
else
{ echo 'ERROR: Invalid installer signature, probably installer was updated, fix in /tests/phpthemis/composer-setup.sh'; unlink('composer-setup.php'); exit(1); }
{ echo '\nERROR: Invalid installer signature, probably installer was updated, fix in /tests/phpthemis/composer-setup.sh'; unlink('composer-setup.php'); exit(1); }
echo PHP_EOL;"

echo "If installation fails, means installer signature is invalid"
Expand Down

0 comments on commit c475dc1

Please sign in to comment.