]> gitweb.fluxo.info Git - puppet-php.git/commitdiff
Get composer: ensure old composer-setup.php is absent before continuing
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 30 Mar 2020 14:30:33 +0000 (11:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 30 Mar 2020 14:30:33 +0000 (11:30 -0300)
files/getcomposer

index b2ef706cccb35588231a698a58563eac0454469c..289c97020dcc22cb778024a52c37f1bfb33c8c53 100755 (executable)
@@ -6,6 +6,7 @@
 
 # Download
 #php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
+rm -f composer-setup.php
 wget https://getcomposer.org/installer -O composer-setup.php || exit 1
 
 php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"