Skip to content

Commit 144adbe

Browse files
authored
Merge pull request #240 from sudo-barun/exit-with-non-zero-status-code-when-hash-mismatch
exit with non-zero status code when hash mismatch
2 parents e44d08b + 6f80d1e commit 144adbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/download.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
To automate the installation, use <a href="/doc/faqs/how-to-install-composer-programmatically.md" title="See the instructions on how to install Composer programmatically" aria-label="See the instructions on how to install Composer programmatically">the guide on installing Composer programmatically</a>.
2626
</p>
2727
<pre class="installer">php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
28-
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
28+
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }"
2929
php composer-setup.php
3030
php -r "unlink('composer-setup.php');"</pre>
3131

0 commit comments

Comments
 (0)