Pőcze Bence
a61d2951d7
* add composer.json and basic environment * add basic classes * add basic map with JS and CSS (with demo functionality) * add files for docker-compose * add launch.json for Docker debug * add README
18 lines
498 B
Bash
Executable File
18 lines
498 B
Bash
Executable File
#!/bin/sh
|
|
|
|
EXPECTED_CHECKSUM="$(curl -s https://composer.github.io/installer.sig)"
|
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
|
|
|
|
if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]
|
|
then
|
|
>&2 echo 'ERROR: Invalid installer checksum'
|
|
rm composer-setup.php
|
|
exit 1
|
|
fi
|
|
|
|
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
|
RESULT=$?
|
|
rm composer-setup.php
|
|
exit $RESULT
|