aboutsummaryrefslogtreecommitdiff
path: root/files/getcomposer
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-03-30 11:30:33 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-03-30 11:30:33 -0300
commitd3c45d119c584d41c905aaa78d59c21b093bf81b (patch)
treeda6c40526e6089f0884d402398873daf7c7d2b10 /files/getcomposer
parent52e254c32d6dfbe2d193098706582a850385f66c (diff)
downloadpuppet-php-d3c45d119c584d41c905aaa78d59c21b093bf81b.tar.gz
puppet-php-d3c45d119c584d41c905aaa78d59c21b093bf81b.tar.bz2
Get composer: ensure old composer-setup.php is absent before continuing
Diffstat (limited to 'files/getcomposer')
-rwxr-xr-xfiles/getcomposer1
1 files changed, 1 insertions, 0 deletions
diff --git a/files/getcomposer b/files/getcomposer
index b2ef706..289c970 100755
--- a/files/getcomposer
+++ b/files/getcomposer
@@ -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;"